on xenial help sign in
Cimi wants more if
7a0ab97Albert Astals Cid
tests/qmltests/Dash/Previews/tst_PreviewIconActions.qml+5−2
@@ -44,7 +44,9 @@ Rectangle {
44 widgetData: actionDataActions
44 widgetData: actionDataActions
45 onTriggered: {
45 onTriggered: {
46 if (timer.index !== -1) {
46 if (timer.index !== -1) {
47+ if (!testcase.running) {
47− console.log("Processing other click, ignoring");
48+ console.log("Processing other click, ignoring");
49+ }
48 return;
50 return;
49 }
51 }
50
52
@@ -56,8 +58,9 @@ Rectangle {
56 }
58 }
57
59
58 timer.start();
60 timer.start();
59− if (!testcase.running)
61+ if (!testcase.running) {
60 console.log("triggered", widgetId, actionId);
62 console.log("triggered", widgetId, actionId);
63+ }
61 }
64 }
62 width: parent.width
65 width: parent.width
63 clip: true
66 clip: true