diff options
author | Ken Moore <ken@ixsystems.com> | 2017-12-06 08:50:50 -0500 |
---|---|---|
committer | Ken Moore <ken@ixsystems.com> | 2017-12-06 08:50:50 -0500 |
commit | 0731b3a309f48ec0202e50d8d034b0723a20f8eb (patch) | |
tree | 19785e7eff64d3a85d9f792a00699e301820ae16 /src-qt5/desktop-utils/lumina-textedit/MainUI.h | |
parent | Merge pull request #521 from ktullavik/lumina-textedit-ui (diff) | |
download | lumina-0731b3a309f48ec0202e50d8d034b0723a20f8eb.tar.gz lumina-0731b3a309f48ec0202e50d8d034b0723a20f8eb.tar.bz2 lumina-0731b3a309f48ec0202e50d8d034b0723a20f8eb.zip |
Make sure that on closing, it attempts to save *all* files with pending changes.
If popup warnings are disabled just close the app (never automatically change the underlying file(s) - this can be disastrous)
Add status reporting to all the "Save" functions so that it returns false if the user cancelled it.
Diffstat (limited to 'src-qt5/desktop-utils/lumina-textedit/MainUI.h')
-rw-r--r-- | src-qt5/desktop-utils/lumina-textedit/MainUI.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src-qt5/desktop-utils/lumina-textedit/MainUI.h b/src-qt5/desktop-utils/lumina-textedit/MainUI.h index 8a3812a1..5d10f21b 100644 --- a/src-qt5/desktop-utils/lumina-textedit/MainUI.h +++ b/src-qt5/desktop-utils/lumina-textedit/MainUI.h @@ -51,8 +51,9 @@ private slots: void NewFile(); void OpenFile(QString file = ""); void CloseFile(); //current file only - void SaveFile(); - void SaveFileAs(); + bool SaveFile(); + bool SaveFileAs(); + bool SaveAllFiles(); void Print(); void fontChanged(const QFont &font); void updateStatusTip(); |