global: made every user action set a project "modified" state that will prevent

the main window from closing instantly
This commit is contained in:
itsmattkc
2020-03-03 14:33:45 +11:00
parent 0f5cd40c45
commit baf3fbde05
25 changed files with 377 additions and 238 deletions
+7 -3
View File
@@ -131,7 +131,9 @@ public:
* Call this function whenever a change is made to a currently active project. Saving the project will automatically
* unset this.
*/
void SetProjectModified();
void SetProjectModified(bool e);
bool IsProjectModified() const;
/**
* @brief Set how frequently an autorecovery should be saved (if the project has changed, see SetProjectModified())
@@ -193,12 +195,12 @@ public slots:
*
* If the project hasn't been saved before, this will be equivalent to calling SaveActiveProjectAs().
*/
void SaveActiveProject();
bool SaveActiveProject();
/**
* @brief Save the currently active project with a new filename
*/
void SaveActiveProjectAs();
bool SaveActiveProjectAs();
/**
* @brief Set the current application-wide tool
@@ -353,6 +355,8 @@ private:
private slots:
void SaveAutorecovery();
void ProjectSaveSucceeded();
/**
* @brief Adds a project to the "open projects" list
*/