diff options
| author | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-08-16 10:40:59 +0100 |
|---|---|---|
| committer | Nick Dedekind <nicholas.dedekind@gmail.com> | 2013-08-16 10:40:59 +0100 |
| commit | 2a454a93a5f82ec79e51fa3e78f4d79c3a19fd2b (patch) | |
| tree | d7e56f89e57a65bb48116a095b9b7503ec94ad6f /dash | |
| parent | 933e9fe60d6c121bbbf2e14df3a0213733d75a63 (diff) | |
Fixed duplcate categories
(bzr r3472.1.1)
Diffstat (limited to 'dash')
| -rwxr-xr-x | dash/ScopeView.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dash/ScopeView.cpp b/dash/ScopeView.cpp index ffce422ef..861f1ca24 100755 --- a/dash/ScopeView.cpp +++ b/dash/ScopeView.cpp @@ -293,7 +293,7 @@ void ScopeView::SetupCategories(Categories::Ptr const& categories) conn = categories->category_removed.connect(sigc::mem_fun(this, &ScopeView::OnCategoryRemoved)); category_removed_connection_ = conn_manager_.Add(conn); - auto resync_categories = [this, categories] (bool add) + auto resync_categories = [this, categories] (bool add = false) { ClearCategories(); if (add) @@ -303,7 +303,7 @@ void ScopeView::SetupCategories(Categories::Ptr const& categories) } }; - categories->model.changed.connect(sigc::bind(sigc::hide(resync_categories), false)); + categories->model.changed.connect(sigc::hide(resync_categories)); resync_categories(true); scope_->category_order.changed.connect(sigc::mem_fun(this, &ScopeView::OnCategoryOrderChanged)); @@ -393,7 +393,7 @@ void ScopeView::SetupFilters(Filters::Ptr const& filters) conn = filters->filter_removed.connect(sigc::mem_fun(this, &ScopeView::OnFilterRemoved)); filter_removed_connection_ = conn_manager_.Add(conn); - auto resync_filters = [this, filters] (bool add) + auto resync_filters = [this, filters] (bool add = false) { auto conn = conn_manager_.Get(filter_removed_connection_); bool blocked = conn.block(true); @@ -408,7 +408,7 @@ void ScopeView::SetupFilters(Filters::Ptr const& filters) conn.block(blocked); }; - filters->model.changed.connect(sigc::bind(sigc::hide(resync_filters), false)); + filters->model.changed.connect(sigc::hide(resync_filters)); resync_filters(true); } @@ -425,6 +425,7 @@ void ScopeView::OnCategoryAdded(Category const& category) LOG_DEBUG(logger) << "Category added '" << (scope_ ? scope_->name() : "unknown") << "': " << name + << "[" << category.id() << "] " << "(" << icon_hint << ", " << renderer_name << ", " << index << ")"; |
