summaryrefslogtreecommitdiff
Side-by-side diff
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() {
FileManager fm;
if ( !fm.saveFile( *doc, rt ) ) {
+ QMessageBox::message(tr("Text Edit"),tr("Save Failed"));
return false;
}
@@ -828,5 +829,5 @@ bool TextEdit::save() {
} else {
QMessageBox::message(tr("Text Edit"),tr("Write Failed"));
- return false;
+ return false;
}
@@ -910,12 +911,11 @@ bool TextEdit::saveAs() {
dire = QPEApplication::documentDir();
QString str;
- if( !featureAutoSave)
- {
+ if( !featureAutoSave) {
str = OFileDialog::getSaveFileName( 2,
dire,
filee, map);
- }
- else
+ } else
str=currentFileName;
+
if(!str.isEmpty()) {
QString fileNm=str;
@@ -939,4 +939,5 @@ bool TextEdit::saveAs() {
FileManager fm;
if ( !fm.saveFile( *doc, rt ) ) {
+ QMessageBox::message(tr("Text Edit"),tr("Save Failed"));
return false;
}