global: made every user action set a project "modified" state that will prevent
the main window from closing instantly
This commit is contained in:
+7
-3
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user