diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 18:07:46 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-10-20 18:07:46 +0200 |
commit | c2f50af65825c1e4c241b86d3ce95341feab041e (patch) | |
tree | ab792f4c8be1e80b4f096b78de7df48c426d5a7b /gui | |
parent | b947e4a4ae0e06633b114dd59d447973fc5aaa56 (diff) |
gui: don't close dialog on no-op change
When profile changes but module controlling the dialog
doesn't, don't close the opened dialog window.
Diffstat (limited to 'gui')
-rw-r--r-- | gui/main-window.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index d03dbb82..fbad58e8 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -114,18 +114,18 @@ MainWindow::MainWindow() : // dylibs { - connect(&m.tracker_dll, - base_value::signal_fun<QString>(), + connect(ui.iconcomboTrackerSource, + &QComboBox::currentTextChanged, this, [&](const QString&) { if (pTrackerDialog) pTrackerDialog = nullptr; save_modules(); }); - connect(&m.protocol_dll, - base_value::signal_fun<QString>(), + connect(ui.iconcomboTrackerSource, + &QComboBox::currentTextChanged, this, [&](const QString&) { if (pProtocolDialog) pProtocolDialog = nullptr; save_modules(); }); - connect(&m.filter_dll, - base_value::signal_fun<QString>(), + connect(ui.iconcomboTrackerSource, + &QComboBox::currentTextChanged, this, [&](const QString&) { if (pFilterDialog) pFilterDialog = nullptr; save_modules(); }); } |