-rw-r--r-- | core/apps/textedit/textedit.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index f99f259..c1f74bb 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -754,17 +754,18 @@ bool TextEdit::save() | |||
754 | FileManager fm; | 754 | FileManager fm; |
755 | if ( !fm.saveFile( *doc, rt ) ) { | 755 | if ( !fm.saveFile( *doc, rt ) ) { |
756 | return false; | 756 | return false; |
757 | } | 757 | } |
758 | } else { | 758 | } else { |
759 | qDebug("regular save file"); | 759 | qDebug("regular save file"); |
760 | QFile f(file); | 760 | QFile f(file); |
761 | if( f.open(IO_WriteOnly)) { | 761 | if( f.open(IO_WriteOnly)) { |
762 | f.writeBlock(rt,rt.length()); | 762 | QCString crt = rt.utf8(); |
763 | f.writeBlock(crt,crt.length()); | ||
763 | } else { | 764 | } else { |
764 | QMessageBox::message("Text Edit","Write Failed"); | 765 | QMessageBox::message("Text Edit","Write Failed"); |
765 | return false; | 766 | return false; |
766 | } | 767 | } |
767 | 768 | ||
768 | } | 769 | } |
769 | editor->setEdited( FALSE); | 770 | editor->setEdited( FALSE); |
770 | edited1=FALSE; | 771 | edited1=FALSE; |