summaryrefslogtreecommitdiffhomepage
path: root/api/plugin-api.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'api/plugin-api.cpp')
-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)