Merge lp:~sylvain-pineau/cdts/fix-1258326 into lp:cdts

Proposed by Sylvain Pineau
Status: Merged
Approved by: Zygmunt Krynicki
Approved revision: 2330
Merged at revision: 2329
Proposed branch: lp:~sylvain-pineau/cdts/fix-1258326
Merge into: lp:cdts
Diff against target: 41 lines (+10/-0)
3 files modified
plainbox-gui/canonical-driver-test-suite/qml/ManualInteractionDialog.qml (+3/-0)
plainbox-gui/gui-engine/gui-engine.cpp (+5/-0)
plainbox-gui/gui-engine/gui-engine.h (+2/-0)
To merge this branch: bzr merge lp:~sylvain-pineau/cdts/fix-1258326
Reviewer Review Type Date Requested Status
Brendan Donegan (community) Approve
Zygmunt Krynicki (community) Approve
Sylvain Pineau (community) Needs Resubmitting
Review via email: mp+198397@code.launchpad.net

Description of the change

this MR adds a new Qt signal to properly close the Manual Interaction Dialog once a job result is available for a user-interact job.

To post a comment you must log in.
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

I don't particularly see the need for the logging statement. It's harmless of course, but we should be consistent in our use of logging, and at the moment we're not so let's not add any more until we figure out a better logging scheme.

review: Needs Information
lp:~sylvain-pineau/cdts/fix-1258326 updated
2330. By Sylvain Pineau

qml:ManualInteractionDialog: close the popup onCloseManualInteractionDialog

Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

removed!

review: Needs Resubmitting
Revision history for this message
Zygmunt Krynicki (zyga) wrote :

+1

review: Approve
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'plainbox-gui/canonical-driver-test-suite/qml/ManualInteractionDialog.qml'
2--- plainbox-gui/canonical-driver-test-suite/qml/ManualInteractionDialog.qml 2013-09-10 07:25:03 +0000
3+++ plainbox-gui/canonical-driver-test-suite/qml/ManualInteractionDialog.qml 2013-12-10 14:02:17 +0000
4@@ -263,5 +263,8 @@
5 skipcheck.checked = false; // we didnt skip it
6 }
7 }
8+ onCloseManualInteractionDialog: {
9+ PopupUtils.close(dialog)
10+ }
11 }
12 }
13
14=== modified file 'plainbox-gui/gui-engine/gui-engine.cpp'
15--- plainbox-gui/gui-engine/gui-engine.cpp 2013-11-04 22:12:02 +0000
16+++ plainbox-gui/gui-engine/gui-engine.cpp 2013-12-10 14:02:17 +0000
17@@ -2255,6 +2255,11 @@
18 // How did this job turn out?
19 const int outcome = GetOutcomeFromJobResultPath(result);
20
21+ if (m_running_manual_job) {
22+ m_running_manual_job = false;
23+ emit closeManualInteractionDialog();
24+ }
25+
26 // Update the GUI so it knows what the job outcome was
27 emit updateGuiEndJob(m_run_list.at(m_current_job_index).path(), \
28 m_current_job_index, \
29
30=== modified file 'plainbox-gui/gui-engine/gui-engine.h'
31--- plainbox-gui/gui-engine/gui-engine.h 2013-09-24 20:39:22 +0000
32+++ plainbox-gui/gui-engine/gui-engine.h 2013-12-10 14:02:17 +0000
33@@ -231,6 +231,8 @@
34
35 void updateManualInteractionDialog(const int outcome, bool show_test);
36
37+ void closeManualInteractionDialog(void);
38+
39 private:
40 // Helper function when generating the desired local and real jobs
41 QList<QDBusObjectPath> GenerateDesiredJobList(QList<QDBusObjectPath> job_list);

Subscribers

People subscribed via source and target branches