-rw-r--r-- | core/apps/textedit/textedit.cpp | 7 |
1 files changed, 6 insertions, 1 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 @@ -789,3 +789,8 @@ void TextEdit::showEditTools() { bool TextEdit::save() { - QString file = doc->file(); + qDebug("saveAsFile " + currentFileName); + if(currentFileName.isEmpty()) { + saveAs(); + return; + } + QString file = doc->file(); qDebug("saver file "+file); |