summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_fg/ftnoir_protocol_fg_dialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ftnoir_protocol_fg/ftnoir_protocol_fg_dialog.cpp')
-rw-r--r--ftnoir_protocol_fg/ftnoir_protocol_fg_dialog.cpp23
1 files changed, 2 insertions, 21 deletions
diff --git a/ftnoir_protocol_fg/ftnoir_protocol_fg_dialog.cpp b/ftnoir_protocol_fg/ftnoir_protocol_fg_dialog.cpp
index 887020c5..1c3e5ef8 100644
--- a/ftnoir_protocol_fg/ftnoir_protocol_fg_dialog.cpp
+++ b/ftnoir_protocol_fg/ftnoir_protocol_fg_dialog.cpp
@@ -59,27 +59,8 @@ void FGControls::doOK() {
}
void FGControls::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();
- if (theProtocol)
- theProtocol->reloadSettings();
- this->close();
- break;
- case QMessageBox::Discard:
- s.b->revert();
- close();
- break;
- case QMessageBox::Cancel:
- default:
- break;
- }
- }
- else {
- this->close();
- }
+ s.b->revert();
+ this->close();
}
extern "C" FTNOIR_PROTOCOL_BASE_EXPORT IProtocolDialog* CALLING_CONVENTION GetDialog( )