diff options
Diffstat (limited to 'api/plugin-api.cpp')
-rw-r--r-- | api/plugin-api.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/api/plugin-api.cpp b/api/plugin-api.cpp index 1bf56200..100902eb 100644 --- a/api/plugin-api.cpp +++ b/api/plugin-api.cpp @@ -11,7 +11,13 @@ ITracker::~ITracker() {} ITrackerDialog::~ITrackerDialog() {} plugin_api::detail::BaseDialog::BaseDialog() {} -void plugin_api::detail::BaseDialog::closeEvent(QCloseEvent*) { emit closing(); } + +void plugin_api::detail::BaseDialog::closeEvent(QCloseEvent*) +{ + if (isVisible()) + emit closing(); +} + Metadata::Metadata() {} IFilter::IFilter() {} IFilterDialog::IFilterDialog() {} @@ -19,3 +25,5 @@ IProtocol::IProtocol() {} IProtocolDialog::IProtocolDialog() {} ITracker::ITracker() {} ITrackerDialog::ITrackerDialog() {} + +void plugin_api::detail::BaseDialog::done(int) { close(); hide(); } |