diff options
Diffstat (limited to 'gui/main-window.cpp')
-rw-r--r-- | gui/main-window.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp index f4e08211..1a49a0b2 100644 --- a/gui/main-window.cpp +++ b/gui/main-window.cpp @@ -667,7 +667,8 @@ void main_window::show_tracker_settings() pTrackerDialog->register_tracker(work->libs.pTracker.get()); if (pTrackerDialog) // must run bundle::reload(), don't remove next line - QObject::connect(pTrackerDialog.get(), &ITrackerDialog::closing, this, [this]() { pTrackerDialog = nullptr; }); + QObject::connect(pTrackerDialog.get(), &ITrackerDialog::closing, + this, [this]() { pTrackerDialog = nullptr; }); } void main_window::show_proto_settings() @@ -676,7 +677,8 @@ void main_window::show_proto_settings() pProtocolDialog->register_protocol(work->libs.pProtocol.get()); if (pProtocolDialog) // must run bundle::reload(), don't remove next line - QObject::connect(pProtocolDialog.get(), &IProtocolDialog::closing, this, [this]() { pProtocolDialog = nullptr; }); + QObject::connect(pProtocolDialog.get(), &IProtocolDialog::closing, + this, [this]() { pProtocolDialog = nullptr; }); } void main_window::show_filter_settings() @@ -685,14 +687,16 @@ void main_window::show_filter_settings() pFilterDialog->register_filter(work->libs.pFilter.get()); if (pFilterDialog) // must run bundle::reload(), don't remove next line - QObject::connect(pFilterDialog.get(), &IFilterDialog::closing, this, [this]() { pFilterDialog = nullptr; }); + QObject::connect(pFilterDialog.get(), &IFilterDialog::closing, + this, [this]() { pFilterDialog = nullptr; }); } void main_window::show_options_dialog() { if (mk_window(options_widget, [&](bool flag) { set_keys_enabled(!flag); })) { - connect(options_widget.get(), &options_dialog::closing, this, &main_window::register_shortcuts); + connect(options_widget.get(), &options_dialog::closing, + this, &main_window::register_shortcuts); } } |