diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-26 12:27:21 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-01-26 12:27:21 +0100 |
commit | d3ffafd227ab99e8673ea3edcf31de9b9e69fffa (patch) | |
tree | a4393fda9f7ea577f03797ac720f049a0127490d /api | |
parent | bb383abdf8631049aa2cb00189c2f7468513175d (diff) |
api: don't close a dialog that's already being closedopentrack-2022.1.1
Diffstat (limited to 'api')
-rw-r--r-- | api/plugin-api.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp index 3bf4b37b..6a43b55d 100644 --- a/api/plugin-api.cpp +++ b/api/plugin-api.cpp @@ -1,16 +1,15 @@ #include "plugin-api.hpp" +#include <QCloseEvent> #include <QDebug> namespace plugin_api::detail { BaseDialog::BaseDialog() = default; -void BaseDialog::closeEvent(QCloseEvent*) +void BaseDialog::closeEvent(QCloseEvent* e) { if (isVisible()) - { emit closing(); - reject(); - } + e->accept(); } void BaseDialog::done(int) |