on xenial help sign in
Activate on click for SimpleMessages
commit4c26121242c0f9138c7184ef32910d412e9b52ae authorAlbert Astals Cid <albert.astals@canonical.com> dateMon 21 Mar 2016, 11:42 (11 years ago) parentb59978a
2 files changed+2−5
qml/Panel/Indicators/MessageMenuItemFactory.qml+1−5 tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml+1
qml/Panel/Indicators/MessageMenuItemFactory.qml+1−5
@@ -123,11 +123,7 @@ Loader {
123123 menuModel.activate(menuIndex, false);
124124 }
125125 onTriggered: {
126− if (selected) {
127− menuDeselected();
128− } else {
129− menuSelected();
130− }
126+ menuModel.activate(menuIndex, true);
131127 }
132128 }
133129 }
tests/qmltests/Panel/Indicators/tst_MessageMenuItemFactory.qml+1
@@ -30,6 +30,7 @@ Item {
3030 id: factory
3131 menuModel: UnityMenuModel {}
3232 menuIndex: 0
33+ width: parent.width
3334 }
3435
3536 UT.UnityTestCase {