-rw-r--r-- | core/apps/textedit/textedit.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index e41c69d..2f59ede 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -691,8 +691,11 @@ void TextEdit::showEditTools() bool TextEdit::save() { - qDebug("saveFile "+currentFileName); - + QString file = doc->file(); + QString name= doc->name(); QString rt = editor->text(); - doc->setName( currentFileName); + currentFileName= file ; + qDebug("saveFile "+currentFileName); + + doc->setName( name); FileManager fm; if ( !fm.saveFile( *doc, rt ) ) { |