summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/mainwindow.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/noncore/apps/opie-console/mainwindow.cpp b/noncore/apps/opie-console/mainwindow.cpp
index 9b615f1..21de5c0 100644
--- a/noncore/apps/opie-console/mainwindow.cpp
+++ b/noncore/apps/opie-console/mainwindow.cpp
@@ -27,9 +27,7 @@ using namespace Opie::Ui;
/* STD */
#include <assert.h>
-#ifdef EAST
#include <opie2/oconfig.h>
-#endif
MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) {
@@ -747,7 +745,10 @@ void MainWindow::slotSaveLog() {
QStringList text;
text << "text/plain";
map.insert(tr("Log"), text );
- QString m_logName = OFileDialog::getSaveFileName(2, QPEApplication::documentDir(), QString::null, map);
+ Opie::Core::OConfig cfg("opie-console");
+ cfg.setGroup("defaults");
+ QString startDir = cfg.readEntry("defaultlogdir", QPEApplication::documentDir() );
+ QString m_logName = OFileDialog::getSaveFileName(2, startDir, QString::null, map, 0, startDir);
if (m_logName.isEmpty() ) return;
m_recordLog->setText( tr("Stop log") );