Merge lp:~stolowski/unity8/results-nullptr-fix into lp:unity8
Proposed by
Paweł Stołowski
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Approved by: | Michal Hruby | ||||||||
Approved revision: | 339 | ||||||||
Merged at revision: | 340 | ||||||||
Proposed branch: | lp:~stolowski/unity8/results-nullptr-fix | ||||||||
Merge into: | lp:unity8 | ||||||||
Diff against target: |
30 lines (+12/-1) 1 file modified
plugins/Unity/categories.cpp (+12/-1) |
||||||||
To merge this branch: | bzr merge lp:~stolowski/unity8/results-nullptr-fix | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Michal Hruby (community) | Approve | ||
Review via email: mp+187052@code.launchpad.net |
Commit message
Check results model ptr returned by GetResultsFromC
Description of the change
Check results model ptr returned by GetResultsFromC
To post a comment you must log in.
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.