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
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.
416. By Nick Dedekind

Only use the parser when needed.

Revision history for this message
Michael Terry (mterry) wrote :

A couple style comments:

17 +void RootActionState::reset() {

Brace should be on new line.

27 if (m_menu && m_menu->rowCount() > 0) {
28 +
29 + ActionStateParser* oldParser = m_menu->actionStateParser();

We can drop the extra new line.

review: Needs Fixing
417. By Nick Dedekind

fixed style

Revision history for this message
Nick Dedekind (nick-dedekind) wrote :

> A couple style comments:
>
> 17 +void RootActionState::reset() {
>
> Brace should be on new line.
>
> 27 if (m_menu && m_menu->rowCount() > 0) {
> 28 +
> 29 + ActionStateParser* oldParser = m_menu->actionStateParser();
>
> We can drop the extra new line.

Thanks.
Fixed.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:415
http://jenkins.qa.ubuntu.com/job/unity8-ci/1370/
Executed test runs:
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-saucy/4952
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-touch/2856
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/unity-phablet-qmluitests-saucy/2236
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-saucy-amd64-ci/393
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-saucy-armhf-ci/1370
        deb: http://jenkins.qa.ubuntu.com/job/unity8-saucy-armhf-ci/1370/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/unity8-saucy-i386-ci/1369
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-saucy/1128
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-amd64/827
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-amd64/827/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-armhf/2858
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-saucy-armhf/2858/artifact/work/output/*zip*/output.zip
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-maguro/2375
    UNSTABLE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/2415

Click here to trigger a rebuild:
http://10.97.0.26:8080/job/unity8-ci/1370/rebuild

review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
The diff is not available at this time. You can reload the page or download it.

Subscribers

People subscribed via source and target branches