diff --git a/vlsisapd/src/configuration/src/ConfigurationDialog.cpp b/vlsisapd/src/configuration/src/ConfigurationDialog.cpp index ec256bbc..fc5a22ab 100644 --- a/vlsisapd/src/configuration/src/ConfigurationDialog.cpp +++ b/vlsisapd/src/configuration/src/ConfigurationDialog.cpp @@ -38,7 +38,7 @@ ConfigurationDialog::ConfigurationDialog(QWidget* parent): QDialog(parent) { setWindowTitle("Configure window"); ConfigurationWidget* confWidget = Configuration::get()->buildWidget(ConfigurationWidget::StandAlone); - connect(confWidget->getApplyButton() , SIGNAL(clicked()), this, SLOT(close())); + connect(confWidget , SIGNAL(checkOk()), this, SLOT(close())); connect(confWidget->getCancelButton(), SIGNAL(clicked()), this, SLOT(close())); connect(confWidget->getSaveButton() , SIGNAL(clicked()), this, SIGNAL(saveToFile())); diff --git a/vlsisapd/src/configuration/src/ConfigurationWidget.cpp b/vlsisapd/src/configuration/src/ConfigurationWidget.cpp index 90ee88f0..c1b5b132 100644 --- a/vlsisapd/src/configuration/src/ConfigurationWidget.cpp +++ b/vlsisapd/src/configuration/src/ConfigurationWidget.cpp @@ -206,6 +206,8 @@ namespace Cfg { if ( _log == NULL ) _log = new LogWidget(this); _log->updateLogs (); _log->exec (); + } else { + emit checkOk(); } } diff --git a/vlsisapd/src/configuration/src/vlsisapd/configuration/ConfigurationWidget.h b/vlsisapd/src/configuration/src/vlsisapd/configuration/ConfigurationWidget.h index eef97ea8..7fef8b7a 100644 --- a/vlsisapd/src/configuration/src/vlsisapd/configuration/ConfigurationWidget.h +++ b/vlsisapd/src/configuration/src/vlsisapd/configuration/ConfigurationWidget.h @@ -79,6 +79,7 @@ namespace Cfg { void applyClicked (); signals: void updateParameters (); + void checkOk (); private: unsigned int _flags; QFont _boldFont;