diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-26 01:50:50 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-26 01:50:50 +0100 |
commit | 38aee2a224a198e2f1144e5c71039fd17f317c78 (patch) | |
tree | 5327223dffdb604e0aa9b2e49257b19a5190db02 /gui | |
parent | 234f77a65dfd6562a6a845636be4f1bd02040cf1 (diff) |
api, gui: close options dlg on Esc inside inner dlg
Diffstat (limited to 'gui')
-rw-r--r-- | gui/options-dialog.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp index d1769ea8..ac4117bc 100644 --- a/gui/options-dialog.cpp +++ b/gui/options-dialog.cpp @@ -179,9 +179,12 @@ options_dialog::options_dialog(std::unique_ptr<ITrackerDialog>& tracker_dialog_, auto add_module_tab = [this] (auto& place, auto&& dlg, const QString& label) { if (dlg && dlg->embeddable()) { + using BaseDialog = plugin_api::detail::BaseDialog; + dlg->set_buttons_visible(false); place = dlg.release(); ui.tabWidget->addTab(place, label); + QObject::connect(place, &BaseDialog::closing, this, &QDialog::close); } }; |