From 1ab4ca95e4d2cf24d32b38c9031cb6076351e730 Mon Sep 17 00:00:00 2001 From: kergoth Date: Sat, 09 Aug 2003 17:42:14 +0000 Subject: Merge from BRANCH_1_0 --- (limited to 'core/apps/textedit/textedit.cpp') 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 @@ -569,7 +569,6 @@ void TextEdit::fileNew() { void TextEdit::fileOpen() { Config cfg("TextEdit"); cfg. setGroup ( "View" ); - QString dir = cfg.readEntry("LastOpenDirectory", QPEApplication::documentDir()); QMap map; map.insert(tr("All"), QStringList() ); QStringList text; @@ -578,11 +577,10 @@ void TextEdit::fileOpen() { text << "*"; 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 ); } else @@ -976,7 +974,7 @@ 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 ) ); } } @@ -1022,7 +1020,7 @@ void TextEdit::editDelete() { switch ( QMessageBox::warning(this,tr("Text Editor"), tr("Do you really want
to delete " "the current file\nfrom the disk?
This is " - "irreversable!!"), + "irreversable!"), tr("Yes"),tr("No"),0,0,1) ) { case 0: if(doc) { -- cgit v0.9.0.2