summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 2a4d391..8e106bf 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -818,4 +818,5 @@ bool TextEdit::save() {
818 FileManager fm; 818 FileManager fm;
819 if ( !fm.saveFile( *doc, rt ) ) { 819 if ( !fm.saveFile( *doc, rt ) ) {
820 QMessageBox::message(tr("Text Edit"),tr("Save Failed"));
820 return false; 821 return false;
821 } 822 }
@@ -828,5 +829,5 @@ bool TextEdit::save() {
828 } else { 829 } else {
829 QMessageBox::message(tr("Text Edit"),tr("Write Failed")); 830 QMessageBox::message(tr("Text Edit"),tr("Write Failed"));
830 return false; 831 return false;
831 } 832 }
832 833
@@ -910,12 +911,11 @@ bool TextEdit::saveAs() {
910 dire = QPEApplication::documentDir(); 911 dire = QPEApplication::documentDir();
911 QString str; 912 QString str;
912 if( !featureAutoSave) 913 if( !featureAutoSave) {
913 {
914 str = OFileDialog::getSaveFileName( 2, 914 str = OFileDialog::getSaveFileName( 2,
915 dire, 915 dire,
916 filee, map); 916 filee, map);
917 } 917 } else
918 else
919 str=currentFileName; 918 str=currentFileName;
919
920 if(!str.isEmpty()) { 920 if(!str.isEmpty()) {
921 QString fileNm=str; 921 QString fileNm=str;
@@ -939,4 +939,5 @@ bool TextEdit::saveAs() {
939 FileManager fm; 939 FileManager fm;
940 if ( !fm.saveFile( *doc, rt ) ) { 940 if ( !fm.saveFile( *doc, rt ) ) {
941 QMessageBox::message(tr("Text Edit"),tr("Save Failed"));
941 return false; 942 return false;
942 } 943 }