summaryrefslogtreecommitdiff
path: root/src/mainwindow.h
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-10-07 04:27:53 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-10-07 04:27:53 -0400
commit3d97b0efd04326c0252411fc6639c4c6df2f2160 (patch)
tree45249ce4d01da37203c032cc2ff0e4caf1b2ce06 /src/mainwindow.h
parent4dbd5412860deaf0d709be5dfac1b8772285d92d (diff)
added ExitModOrganizer(), used instead of qApp->exit()
reset geometry uses TaskDialog moved restart code for the settings dialog to MainWindow fixed settings sometimes not being saved when restarting don't log "crash dumps present" every time the settings dialog is closed
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r--src/mainwindow.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h
index 524e2b6e..b04096be 100644
--- a/src/mainwindow.h
+++ b/src/mainwindow.h
@@ -111,7 +111,6 @@ class MainWindow : public QMainWindow, public IUserInterface
friend class OrganizerProxy;
public:
-
explicit MainWindow(Settings &settings,
OrganizerCore &organizerCore, PluginContainer &pluginContainer,
QWidget *parent = 0);
@@ -154,7 +153,8 @@ public:
void displayModInformation(
ModInfo::Ptr modInfo, unsigned int modIndex, ModInfoTabIDs tabID) override;
- bool confirmExit();
+ bool canExit();
+ void onBeforeClose();
virtual bool closeWindow();
virtual void setWindowEnabled(bool enabled);
@@ -383,9 +383,8 @@ private:
LockedDialogBase *m_LockDialog { nullptr };
uint64_t m_LockCount { 0 };
- bool m_closing{ false };
-
bool m_showArchiveData{ true };
+ bool m_exitAfterWait{ false };
MOBase::DelayedFileWriter m_ArchiveListWriter;
@@ -672,8 +671,8 @@ private slots: // ui slots
void on_categoriesOrBtn_toggled(bool checked);
void on_managedArchiveLabel_linkHovered(const QString &link);
- void storeSettings(Settings& settings);
- void readSettings(const Settings& settings);
+ void storeSettings();
+ void readSettings();
void setupModList();
};