summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/tinykate/tinykate.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/noncore/apps/tinykate/tinykate.cpp b/noncore/apps/tinykate/tinykate.cpp
index 51afd31..6164fa5 100644
--- a/noncore/apps/tinykate/tinykate.cpp
+++ b/noncore/apps/tinykate/tinykate.cpp
@@ -153,4 +153,5 @@ void TinyKate::slotOpen( )
{
- QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED_ALL);
- if (!filename.isEmpty()) {
+ QString filename = OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL,
+ QPEApplication::documentDir());
+ if (!filename.isEmpty()) {
open(filename);
@@ -169,3 +170,3 @@ void TinyKate::open(const QString & filename)
kd->setDocName( filenamed);
- kd->open(filename);
+ kd->open( filename );
viewCount++;
@@ -242,3 +243,4 @@ void TinyKate::slotSaveAs() {
- QString filename=OFileDialog::getSaveFileName(OFileSelector::EXTENDED_ALL);
+ QString filename=OFileDialog::getSaveFileName(OFileSelector::EXTENDED_ALL,
+ QPEApplication::documentDir());
if (!filename.isEmpty()) {