summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 35f9d3c..209c5de 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -534,17 +534,17 @@ void TextEdit::fileOpen() {
534 534
535 QMap<QString, QStringList> map; 535 QMap<QString, QStringList> map;
536 map.insert(tr("All"), QStringList() ); 536 map.insert(tr("All"), QStringList() );
537 QStringList text; 537 QStringList text;
538 text << "text/*"; 538 text << "text/*";
539 map.insert(tr("Text"), text ); 539 map.insert(tr("Text"), text );
540 text << "*"; 540 text << "*";
541 map.insert(tr("All"), text ); 541 map.insert(tr("All"), text );
542 QString str = OFileDialog::getOpenFileName( 2,"/", QString::null, map); 542 QString str = OFileDialog::getOpenFileName( 2, QPEApplication::documentDir(), QString::null, map);
543 if(!str.isEmpty() ) 543 if(!str.isEmpty() )
544 openFile( str ); 544 openFile( str );
545 545
546} 546}
547 547
548void TextEdit::doSearchBar() { 548void TextEdit::doSearchBar() {
549 Config cfg("TextEdit"); 549 Config cfg("TextEdit");
550 cfg.setGroup("View"); 550 cfg.setGroup("View");
@@ -809,17 +809,17 @@ bool TextEdit::saveAs() {
809 QMap<QString, QStringList> map; 809 QMap<QString, QStringList> map;
810 map.insert(tr("All"), QStringList() ); 810 map.insert(tr("All"), QStringList() );
811 QStringList text; 811 QStringList text;
812 text << "text/*"; 812 text << "text/*";
813 map.insert(tr("Text"), text ); 813 map.insert(tr("Text"), text );
814 text << "*"; 814 text << "*";
815 map.insert(tr("All"), text ); 815 map.insert(tr("All"), text );
816 816
817 QString str = OFileDialog::getSaveFileName( 2,"/", QString::null, map); 817 QString str = OFileDialog::getSaveFileName( 2,QPEApplication::documentDir(), QString::null, map);
818 818
819 if(!str.isEmpty() ) { 819 if(!str.isEmpty() ) {
820 QString fileNm=str; 820 QString fileNm=str;
821 821
822 qDebug("saving filename "+fileNm); 822 qDebug("saving filename "+fileNm);
823 QFileInfo fi(fileNm); 823 QFileInfo fi(fileNm);
824 currentFileName=fi.fileName(); 824 currentFileName=fi.fileName();
825 if(doc) { 825 if(doc) {