Diffstat (limited to 'core/apps/textedit/textedit.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/apps/textedit/textedit.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 6f96574..1c95a97 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -570,5 +570,4 @@ void TextEdit::fileOpen() { Config cfg("TextEdit"); cfg. setGroup ( "View" ); - QString dir = cfg.readEntry("LastOpenDirectory", QPEApplication::documentDir()); QMap<QString, QStringList> map; map.insert(tr("All"), QStringList() ); @@ -579,9 +578,8 @@ void TextEdit::fileOpen() { map.insert(tr("All"), text ); QString str = OFileDialog::getOpenFileName( 2, - dir , + QString::null , QString::null, map); if( !str.isEmpty() && QFile(str).exists() && !QFileInfo(str).isDir() ) { - cfg.writeEntry("LastOpenDirectory", QFileInfo(str).dirPath(false)); openFile( str ); } @@ -977,5 +975,5 @@ void TextEdit::updateCaption( const QString &name ) { // if(s.left(1) == "/") // s = s.right(s.length()-1); - setCaption( s + " - " + tr("Text Editor") ); + setCaption( tr("%1 - Text Editor").arg( s ) ); } } @@ -1023,5 +1021,5 @@ void TextEdit::editDelete() { tr("Do you really want<BR>to <B>delete</B> " "the current file\nfrom the disk?<BR>This is " - "<B>irreversable!!</B>"), + "<B>irreversable!</B>"), tr("Yes"),tr("No"),0,0,1) ) { case 0: |