summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-12-26 04:27:24 (UTC)
committer llornkcor <llornkcor>2002-12-26 04:27:24 (UTC)
commitec49b87e16b1a198847bd2511ebdccb5fdd3b2c5 (patch) (side-by-side diff)
tree8708fc4a5374b8e3b95b40323c80b88bfe46846f
parentdf79efd854ebb22046e98b9076d31e94e2245ab2 (diff)
downloadopie-ec49b87e16b1a198847bd2511ebdccb5fdd3b2c5.zip
opie-ec49b87e16b1a198847bd2511ebdccb5fdd3b2c5.tar.gz
opie-ec49b87e16b1a198847bd2511ebdccb5fdd3b2c5.tar.bz2
small fix for setting the directory in getOpenFileName, so it will return the fullpath
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/tinykate/tinykate.cpp6
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
@@ -150,9 +150,10 @@ 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);
}
}
@@ -239,9 +240,10 @@ void TinyKate::slotSave() {
void TinyKate::slotSaveAs() {
if (currentView==0) return;
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);
QFileInfo fi(filename);
QString filenamed = fi.fileName();