summaryrefslogtreecommitdiffhomepage
path: root/FTNoIR_Tracker_PT
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-01-05 13:02:52 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-01-05 13:02:52 +0100
commit449625118b3d28baabcdb001595a7dec2f8e3593 (patch)
tree293d5131120072ca5cf74565d5a900f98a8139c7 /FTNoIR_Tracker_PT
parentbbe8552db3fb0d7ab2c3a26b058c059e5df21eeb (diff)
remove settings dialog copypasted all over, losing functionality
Diffstat (limited to 'FTNoIR_Tracker_PT')
-rw-r--r--FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp b/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp
index 06f7b2c6..c103b78c 100644
--- a/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp
+++ b/FTNoIR_Tracker_PT/ftnoir_tracker_pt_dialog.cpp
@@ -225,29 +225,8 @@ void TrackerDialog::doApply()
void TrackerDialog::doCancel()
{
- if (s.b->modifiedp()) {
- int ret = QMessageBox::question ( this, "Settings have changed", "Do you want to save the settings?",
- QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel, QMessageBox::Discard );
- switch (ret) {
- case QMessageBox::Save:
- save();
- close();
- break;
- case QMessageBox::Discard:
- s.b->revert();
- close();
- break;
- case QMessageBox::Cancel:
- // Cancel was clicked
- break;
- default:
- // should never be reached
- break;
- }
- }
- else {
- close();
- }
+ s.b->revert();
+ close();
}
void TrackerDialog::widget_destroyed(QObject* obj)