-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() | |||
691 | bool TextEdit::save() | 691 | bool TextEdit::save() |
692 | { | 692 | { |
693 | qDebug("saveFile "+currentFileName); | 693 | QString file = doc->file(); |
694 | 694 | QString name= doc->name(); | |
695 | QString rt = editor->text(); | 695 | QString rt = editor->text(); |
696 | doc->setName( currentFileName); | 696 | currentFileName= file ; |
697 | qDebug("saveFile "+currentFileName); | ||
698 | |||
699 | doc->setName( name); | ||
697 | FileManager fm; | 700 | FileManager fm; |
698 | if ( !fm.saveFile( *doc, rt ) ) { | 701 | if ( !fm.saveFile( *doc, rt ) ) { |