summaryrefslogtreecommitdiffhomepage
path: root/api
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-26 01:50:50 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-01-26 01:50:50 +0100
commit38aee2a224a198e2f1144e5c71039fd17f317c78 (patch)
tree5327223dffdb604e0aa9b2e49257b19a5190db02 /api
parent234f77a65dfd6562a6a845636be4f1bd02040cf1 (diff)
api, gui: close options dlg on Esc inside inner dlg
Diffstat (limited to 'api')
-rw-r--r--api/plugin-api.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp
index 5c83e42f..ef9e47a1 100644
--- a/api/plugin-api.cpp
+++ b/api/plugin-api.cpp
@@ -1,4 +1,5 @@
#include "plugin-api.hpp"
+#include <QDebug>
namespace plugin_api::detail {
@@ -7,18 +8,15 @@ void BaseDialog::closeEvent(QCloseEvent*)
{
if (isVisible())
{
- hide();
emit closing();
+ close();
}
}
void BaseDialog::done(int)
{
if (isVisible())
- {
- hide();
close();
- }
}
bool BaseDialog::embeddable() noexcept { return false; }