author | llornkcor <llornkcor> | 2002-02-19 01:16:12 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-19 01:16:12 (UTC) |
commit | 05ed9bc7fbd667815e2e3ec608773d19bfd294d2 (patch) (unidiff) | |
tree | 8e32c372231178e96848ba2267195525dd49aaef | |
parent | 2308c4db692821721bbe82f93fd60f275f4cccdc (diff) | |
download | opie-05ed9bc7fbd667815e2e3ec608773d19bfd294d2.zip opie-05ed9bc7fbd667815e2e3ec608773d19bfd294d2.tar.gz opie-05ed9bc7fbd667815e2e3ec608773d19bfd294d2.tar.bz2 |
fixed bug in save (unprompted) saving a new unnamed file...
-rw-r--r-- | core/apps/textedit/textedit.cpp | 7 |
1 files changed, 5 insertions, 2 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 | |||
@@ -690,10 +690,13 @@ void TextEdit::showEditTools() | |||
690 | unprompted save */ | 690 | unprompted save */ |
691 | bool TextEdit::save() | 691 | bool TextEdit::save() |
692 | { | 692 | { |
693 | QString file = doc->file(); | ||
694 | QString name= doc->name(); | ||
695 | QString rt = editor->text(); | ||
696 | currentFileName= file ; | ||
693 | qDebug("saveFile "+currentFileName); | 697 | qDebug("saveFile "+currentFileName); |
694 | 698 | ||
695 | QString rt = editor->text(); | 699 | doc->setName( name); |
696 | doc->setName( currentFileName); | ||
697 | FileManager fm; | 700 | FileManager fm; |
698 | if ( !fm.saveFile( *doc, rt ) ) { | 701 | if ( !fm.saveFile( *doc, rt ) ) { |
699 | return false; | 702 | return false; |