Merge lp:~maxime-bochon/mixxx/bug801096 into lp:mixxx/1.10

Proposed by Maxime Bochon
Status: Merged
Merged at revision: 3061
Proposed branch: lp:~maxime-bochon/mixxx/bug801096
Merge into: lp:mixxx/1.10
Diff against target: 30 lines (+9/-10)
1 file modified
mixxx/src/dlgprefmidibindings.cpp (+9/-10)
To merge this branch: bzr merge lp:~maxime-bochon/mixxx/bug801096
Reviewer Review Type Date Requested Status
RJ Skerry-Ryan Approve
Review via email: mp+95398@code.launchpad.net

Description of the change

Fixed bug #801096 about the missing CANCEL button in the MIDI wizard startup.
Some simple code logic improvement.
The CLOSE button now stops the wizard, as does the CANCEL button.

To post a comment you must log in.
Revision history for this message
RJ Skerry-Ryan (rryan) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mixxx/src/dlgprefmidibindings.cpp'
2--- mixxx/src/dlgprefmidibindings.cpp 2011-12-15 06:52:54 +0000
3+++ mixxx/src/dlgprefmidibindings.cpp 2012-03-01 16:13:22 +0000
4@@ -269,17 +269,16 @@
5 QMessageBox::StandardButton result = QMessageBox::question(this,
6 tr("Apply MIDI device settings?"),
7 tr("Your settings must be applied before starting the MIDI learning wizard.\n"
8- "Apply settings and continue?"));
9- if (result == QMessageBox::Cancel)
10- {
11- return;
12- }
13- else
14- {
15- slotApply();
16- }
17+ "Apply settings and continue?"),
18+ QMessageBox::Ok | QMessageBox::Cancel, //Buttons to be displayed
19+ QMessageBox::Ok); //Default button
20+ //Stop if the user has not pressed the Ok button,
21+ //which could be the Cancel or the Close Button.
22+ if (result != QMessageBox::Ok) return;
23 }
24-
25+
26+ slotApply();
27+
28 //Note that DlgMidiLearning is set to delete itself on
29 //close using the Qt::WA_DeleteOnClose attribute (so this "new" doesn't leak memory)
30 m_pDlgMidiLearning = new DlgMidiLearning(this, m_pMidiDevice->getMidiMapping());

Subscribers

People subscribed via source and target branches