17 + if (unity_results) { 18 + results->setModel(unity_results->model()); 19 + } else {
The else branch should call setModel(NULL), although I'm not sure what to do about the cached value in that case.
49 + m_resultshangedConnection.disconnect(); 50 + m_resultshangedConnection = m_unityScope->results()->model.changed.connect(sigc::mem_fun(this, &Categories::onScopeResultsModelChanged));
I specifically didn't want that signal, cause now we end up setting the model multiple times.
« Back to merge proposal
17 + if (unity_results) { >setModel( unity_results- >model( ));
18 + results-
19 + } else {
The else branch should call setModel(NULL), although I'm not sure what to do about the cached value in that case.
49 + m_resultshanged Connection. disconnect( ); Connection = m_unityScope- >results( )->model. changed. connect( sigc::mem_ fun(this, &Categories: :onScopeResults ModelChanged) );
50 + m_resultshanged
I specifically didn't want that signal, cause now we end up setting the model multiple times.