-rw-r--r-- | core/apps/textedit/textedit.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index bd7cfb6..4f4f994 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -787,6 +787,11 @@ void TextEdit::showEditTools() { | |||
787 | /*! | 787 | /*! |
788 | unprompted save */ | 788 | unprompted save */ |
789 | bool TextEdit::save() { | 789 | bool TextEdit::save() { |
790 | qDebug("saveAsFile " + currentFileName); | ||
791 | if(currentFileName.isEmpty()) { | ||
792 | saveAs(); | ||
793 | return; | ||
794 | } | ||
790 | QString file = doc->file(); | 795 | QString file = doc->file(); |
791 | qDebug("saver file "+file); | 796 | qDebug("saver file "+file); |
792 | QString name= doc->name(); | 797 | QString name= doc->name(); |