-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 | |||
@@ -148,13 +148,14 @@ TinyKate::TinyKate( QWidget *parent, const char *name, WFlags f) : | |||
148 | 148 | ||
149 | } | 149 | } |
150 | 150 | ||
151 | 151 | ||
152 | void TinyKate::slotOpen( ) | 152 | void TinyKate::slotOpen( ) |
153 | { | 153 | { |
154 | QString filename=OFileDialog::getOpenFileName(OFileSelector::EXTENDED_ALL); | 154 | QString filename = OFileDialog::getOpenFileName( OFileSelector::EXTENDED_ALL, |
155 | QPEApplication::documentDir()); | ||
155 | if (!filename.isEmpty()) { | 156 | if (!filename.isEmpty()) { |
156 | open(filename); | 157 | open(filename); |
157 | } | 158 | } |
158 | } | 159 | } |
159 | 160 | ||
160 | void TinyKate::open(const QString & filename) | 161 | void TinyKate::open(const QString & filename) |
@@ -237,13 +238,14 @@ void TinyKate::slotSave() { | |||
237 | } | 238 | } |
238 | 239 | ||
239 | void TinyKate::slotSaveAs() { | 240 | void TinyKate::slotSaveAs() { |
240 | if (currentView==0) return; | 241 | if (currentView==0) return; |
241 | KateDocument *kd = (KateDocument*) currentView->document(); | 242 | KateDocument *kd = (KateDocument*) currentView->document(); |
242 | 243 | ||
243 | QString filename=OFileDialog::getSaveFileName(OFileSelector::EXTENDED_ALL); | 244 | QString filename=OFileDialog::getSaveFileName(OFileSelector::EXTENDED_ALL, |
245 | QPEApplication::documentDir()); | ||
244 | if (!filename.isEmpty()) { | 246 | if (!filename.isEmpty()) { |
245 | qDebug("saving file "+filename); | 247 | qDebug("saving file "+filename); |
246 | QFileInfo fi(filename); | 248 | QFileInfo fi(filename); |
247 | QString filenamed = fi.fileName(); | 249 | QString filenamed = fi.fileName(); |
248 | kd->setDocFile( filename); | 250 | kd->setDocFile( filename); |
249 | kd->setDocName( filenamed); | 251 | kd->setDocName( filenamed); |