summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_tracker_aruco
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_tracker_aruco')
-rw-r--r--ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp26
1 files changed, 2 insertions, 24 deletions
diff --git a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
index 50496ed7..2edac4a2 100644
--- a/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
+++ b/ftnoir_tracker_aruco/ftnoir_tracker_aruco.cpp
@@ -472,28 +472,6 @@ void TrackerControls::doOK()
void TrackerControls::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 );
-
- switch (ret) {
- case QMessageBox::Save:
- s.b->save();
- this->close();
- if (tracker)
- tracker->reload();
- break;
- case QMessageBox::Discard:
- s.b->revert();
- this->close();
- break;
- case QMessageBox::Cancel:
- break;
- }
- }
- else {
- this->close();
- }
+ s.b->revert();
+ this->close();
}