-rw-r--r-- | core/apps/textedit/textedit.cpp | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index f38ea53..e3b8361 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -770,3 +770,3 @@ bool TextEdit::save() { bool TextEdit::saveAs() { - qDebug("saveAsFile "+currentFileName); + qDebug("saveAsFile " + currentFileName); // case of nothing to save... @@ -786,3 +786,5 @@ bool TextEdit::saveAs() { - if( currentFileName.isEmpty() || currentFileName == tr("Unnamed") || currentFileName == tr("Text Editor")) { + if( currentFileName.isEmpty() + || currentFileName == tr("Unnamed") + || currentFileName == tr("Text Editor")) { // qDebug("do silly TT filename thing"); @@ -798,3 +800,4 @@ bool TextEdit::saveAs() { docname.replace( QRegExp("/"), "_" ); - // cut the length. filenames longer than that don't make sense and something goes wrong when they get too long. + // cut the length. filenames longer than that + //don't make sense and something goes wrong when they get too long. if ( docname.length() > 40 ) @@ -815,4 +818,6 @@ bool TextEdit::saveAs() { map.insert(tr("All"), text ); - - QString str = OFileDialog::getSaveFileName( 2,QPEApplication::documentDir(), QString::null, map); +// if(currentFileName + QString str = OFileDialog::getSaveFileName( 2, + QPEApplication::documentDir(), + currentFileName, map); @@ -844,3 +849,5 @@ bool TextEdit::saveAs() { filePermissions *filePerm; - filePerm = new filePermissions(this, tr("Permissions"),true,0,(const QString &)fileNm); + filePerm = new filePermissions(this, + tr("Permissions"),true, + 0,(const QString &)fileNm); filePerm->showMaximized(); |