summaryrefslogtreecommitdiffhomepage
path: root/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
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_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
parentbbe8552db3fb0d7ab2c3a26b058c059e5df21eeb (diff)
remove settings dialog copypasted all over, losing functionality
Diffstat (limited to 'ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp')
-rw-r--r--ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp21
1 files changed, 2 insertions, 19 deletions
diff --git a/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp b/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
index ce4b3cb0..37db314f 100644
--- a/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
+++ b/ftnoir_protocol_ftn/ftnoir_protocol_ftn_dialog.cpp
@@ -52,25 +52,8 @@ void FTNControls::doOK() {
// Cancel clicked on server-dialog
//
void FTNControls::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();
- break;
- case QMessageBox::Discard:
- s.b->revert();
- this->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( )