-rw-r--r-- | core/apps/textedit/textedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 2f59ede..019ffee 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -688,17 +688,17 @@ void TextEdit::showEditTools() | |||
688 | 688 | ||
689 | /*! | 689 | /*! |
690 | unprompted save */ | 690 | unprompted save */ |
691 | bool TextEdit::save() | 691 | bool TextEdit::save() |
692 | { | 692 | { |
693 | QString file = doc->file(); | 693 | QString file = doc->file(); |
694 | QString name= doc->name(); | 694 | QString name= doc->name(); |
695 | QString rt = editor->text(); | 695 | QString rt = editor->text(); |
696 | currentFileName= file ; | 696 | currentFileName= name ; |
697 | qDebug("saveFile "+currentFileName); | 697 | qDebug("saveFile "+currentFileName); |
698 | 698 | ||
699 | doc->setName( name); | 699 | doc->setName( name); |
700 | FileManager fm; | 700 | FileManager fm; |
701 | if ( !fm.saveFile( *doc, rt ) ) { | 701 | if ( !fm.saveFile( *doc, rt ) ) { |
702 | return false; | 702 | return false; |
703 | } | 703 | } |
704 | // if(doc) | 704 | // if(doc) |