summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-26 12:27:21 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-01-26 12:27:21 +0100
commitd3ffafd227ab99e8673ea3edcf31de9b9e69fffa (patch)
treea4393fda9f7ea577f03797ac720f049a0127490d
parentbb383abdf8631049aa2cb00189c2f7468513175d (diff)
api: don't close a dialog that's already being closedopentrack-2022.1.1
-rw-r--r--api/plugin-api.cpp7
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)