-rw-r--r-- | noncore/apps/tinykate/tinykate.cpp | 6 |
1 files changed, 4 insertions, 2 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 @@ -152,5 +152,6 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : void TinyKate::slotOpen( ) { - QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED_ALL); + QString filename = OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL, + QPEApplication::documentDir()); if (!filename.isEmpty()) { open(filename); @@ -241,5 +242,6 @@ void TinyKate::slotSaveAs() { KateDocument *kd = (KateDocument*) currentView->document(); - QString filename=OFileDialog::getSaveFileName(OFileSelector::EXTENDED_ALL); + QString filename=OFileDialog::getSaveFileName(OFileSelector::EXTENDED_ALL, + QPEApplication::documentDir()); if (!filename.isEmpty()) { qDebug("saving file "+filename); |