summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_ht
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_ht')
-rw-r--r--ftnoir_tracker_ht/ftnoir_tracker_ht.cpp25
1 files changed, 2 insertions, 23 deletions
diff --git a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
index 5fced44e..4ce56acc 100644
--- a/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
+++ b/ftnoir_tracker_ht/ftnoir_tracker_ht.cpp
@@ -286,27 +286,6 @@ void TrackerControls::doOK()
void TrackerControls::doCancel()
{
- if (!s.b->modifiedp())
- {
- close();
- return;
- }
- int ret = QMessageBox::question ( this,
- "Settings have changed",
- "Do you want to save the settings?",
- QMessageBox::Save | QMessageBox::Discard | QMessageBox::Cancel);
-
- switch (ret) {
- case QMessageBox::Save:
- s.b->save();
- this->close();
- break;
- case QMessageBox::Discard:
- s.b->revert();
- this->close();
- break;
- default:
- case QMessageBox::Cancel:
- break;
- }
+ s.b->revert();
+ this->close();
}