summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp5
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
@@ -784,12 +784,17 @@ void TextEdit::showEditTools() {
setWState (WState_Reserved1 );
}
/*!
unprompted save */
bool TextEdit::save() {
+ qDebug("saveAsFile " + currentFileName);
+ if(currentFileName.isEmpty()) {
+ saveAs();
+ return;
+ }
QString file = doc->file();
qDebug("saver file "+file);
QString name= doc->name();
qDebug("File named "+name);
QString rt = editor->text();
if( !rt.isEmpty() ) {