From 38aee2a224a198e2f1144e5c71039fd17f317c78 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 26 Jan 2022 01:50:50 +0100 Subject: api, gui: close options dlg on Esc inside inner dlg --- gui/options-dialog.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gui/options-dialog.cpp') 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& 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); } }; -- cgit v1.2.3