summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-02-06 01:37:08 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-02-06 01:37:08 +0100
commitfd0d0a16a856460bb2a983a0a02d1b8bcd79874f (patch)
tree6cd695b714bd5ef5f852f5d0f73320bc76763688
parenta7c4ad0f360a635d34d16f75bfdb09b44ce93602 (diff)
SwitcherController: remove the detail timeout when the detail mode is changed
(bzr r3127.1.1)
-rw-r--r--launcher/SwitcherController.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/launcher/SwitcherController.cpp b/launcher/SwitcherController.cpp
index fc9cd6807..844871cb9 100644
--- a/launcher/SwitcherController.cpp
+++ b/launcher/SwitcherController.cpp
@@ -261,6 +261,7 @@ void Controller::Impl::Show(ShowMode show, SortMode sort, std::vector<AbstractLa
model_ = std::make_shared<SwitcherModel>(results);
obj_->AddChild(model_.get());
model_->selection_changed.connect(sigc::mem_fun(this, &Controller::Impl::OnModelSelectionChanged));
+ model_->detail_selection.changed.connect([this] (bool) { sources_.Remove(DETAIL_TIMEOUT); });
model_->only_detail_on_viewport = (show == ShowMode::CURRENT_VIEWPORT);
SelectFirstItem();