diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 11:05:31 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-02 11:05:31 -0400 |
| commit | c6e80f1a5eed4a57663e7fc55c2727258eaad552 (patch) | |
| tree | 2c4633f4dc3b912a696d36a52329059fe982321b /src/modinfodialog.h | |
| parent | 16b6e772a7ae1561ba87c6d76d001b19635761cd (diff) | |
focus tabs when they need a confirmation to close
dialog did not handle closeEvent() at all, it only checked the close button
bunch of comments
Diffstat (limited to 'src/modinfodialog.h')
| -rw-r--r-- | src/modinfodialog.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modinfodialog.h b/src/modinfodialog.h index 030b3f93..899a3eab 100644 --- a/src/modinfodialog.h +++ b/src/modinfodialog.h @@ -117,6 +117,9 @@ public: signals:
void originModified(int originID);
+protected:
+ void closeEvent(QCloseEvent* e);
+
private slots:
void on_closeButton_clicked();
void on_nextButton_clicked();
@@ -158,8 +161,9 @@ private: void switchToTab(ETabs id);
void reAddTabs(const std::vector<bool>& visibility, ETabs sel);
std::vector<QString> getOrderedTabNames() const;
+ bool tryClose();
- void onOriginModified(std::size_t tabIndex, int originID);
+ void onOriginModified(int originID);
void onTabChanged();
void onTabMoved();
|
