Merge lp://staging/~nick-dedekind/unity8/lp1236249 into lp://staging/unity8
Proposed by
Nick Dedekind
Status: | Merged |
---|---|
Merged at revision: | 447 |
Proposed branch: | lp://staging/~nick-dedekind/unity8/lp1236249 |
Merge into: | lp://staging/unity8 |
Diff against target: |
140 lines (+79/-1) 4 files modified
plugins/Unity/Indicators/rootactionstate.cpp (+15/-1) plugins/Unity/Indicators/rootactionstate.h (+1/-0) tests/plugins/Unity/Indicators/CMakeLists.txt (+5/-0) tests/plugins/Unity/Indicators/rootactionstatetest.cpp (+58/-0) |
To merge this branch: | bzr merge lp://staging/~nick-dedekind/unity8/lp1236249 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Michael Terry | Needs Fixing | ||
Review via email: mp+190687@code.staging.launchpad.net |
Commit message
Only use the root action state as a unitymenumodel ActionStateParser when needed.
Description of the change
Only use the root action state as a unitymenumodel ActionStateParser when needed.
Removes issue where object is destroyed before menu.
Added tests.
To post a comment you must log in.
A couple style comments:
17 +void RootActionState ::reset( ) {
Brace should be on new line.
27 if (m_menu && m_menu->rowCount() > 0) { >actionStatePar ser();
28 +
29 + ActionStateParser* oldParser = m_menu-
We can drop the extra new line.