From c2f50af65825c1e4c241b86d3ce95341feab041e Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 20 Oct 2017 18:07:46 +0200 Subject: 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. --- gui/main-window.cpp | 12 ++++++------ 1 file 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(), + connect(ui.iconcomboTrackerSource, + &QComboBox::currentTextChanged, this, [&](const QString&) { if (pTrackerDialog) pTrackerDialog = nullptr; save_modules(); }); - connect(&m.protocol_dll, - base_value::signal_fun(), + connect(ui.iconcomboTrackerSource, + &QComboBox::currentTextChanged, this, [&](const QString&) { if (pProtocolDialog) pProtocolDialog = nullptr; save_modules(); }); - connect(&m.filter_dll, - base_value::signal_fun(), + connect(ui.iconcomboTrackerSource, + &QComboBox::currentTextChanged, this, [&](const QString&) { if (pFilterDialog) pFilterDialog = nullptr; save_modules(); }); } -- cgit v1.2.3