diff options
| author | Brandon Schaefer <brandontschaefer@gmail.com> | 2012-08-02 14:31:27 -0700 |
|---|---|---|
| committer | Brandon Schaefer <brandontschaefer@gmail.com> | 2012-08-02 14:31:27 -0700 |
| commit | fb7cea9136e3093cc3cee1dabf0b223b15bf3c33 (patch) | |
| tree | 72b7e52dfba5cb89185a68c0940e88c35a5f915d /launcher | |
| parent | eabf711fcd463ce9310711032d7a0f32560310cf (diff) | |
| parent | aaed34cc87e192c56f51a5132789c286295d7be7 (diff) | |
* fixed conflict
(bzr r2529.8.2)
Diffstat (limited to 'launcher')
| -rw-r--r-- | launcher/SwitcherController.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/launcher/SwitcherController.cpp b/launcher/SwitcherController.cpp index 329450524..c21b49a23 100644 --- a/launcher/SwitcherController.cpp +++ b/launcher/SwitcherController.cpp @@ -81,6 +81,9 @@ bool Controller::CanShowSwitcher(const std::vector<AbstractLauncherIcon::Ptr>& r void Controller::Show(ShowMode show, SortMode sort, bool reverse, std::vector<AbstractLauncherIcon::Ptr> results) { + if (results.empty()) + return; + if (sort == SortMode::FOCUS_ORDER) { std::sort(results.begin(), results.end(), CompareSwitcherItemsPriority); |
