-rw-r--r-- | noncore/apps/opie-console/mainwindow.cpp | 7 |
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; | |||
27 | /* STD */ | 27 | /* STD */ |
28 | #include <assert.h> | 28 | #include <assert.h> |
29 | 29 | ||
30 | #ifdef EAST | ||
31 | #include <opie2/oconfig.h> | 30 | #include <opie2/oconfig.h> |
32 | #endif | ||
33 | 31 | ||
34 | MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) { | 32 | MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) { |
35 | 33 | ||
@@ -747,7 +745,10 @@ void MainWindow::slotSaveLog() { | |||
747 | QStringList text; | 745 | QStringList text; |
748 | text << "text/plain"; | 746 | text << "text/plain"; |
749 | map.insert(tr("Log"), text ); | 747 | map.insert(tr("Log"), text ); |
750 | QString m_logName = OFileDialog::getSaveFileName(2, QPEApplication::documentDir(), QString::null, map); | 748 | Opie::Core::OConfig cfg("opie-console"); |
749 | cfg.setGroup("defaults"); | ||
750 | QString startDir = cfg.readEntry("defaultlogdir", QPEApplication::documentDir() ); | ||
751 | QString m_logName = OFileDialog::getSaveFileName(2, startDir, QString::null, map, 0, startDir); | ||
751 | if (m_logName.isEmpty() ) return; | 752 | if (m_logName.isEmpty() ) return; |
752 | 753 | ||
753 | m_recordLog->setText( tr("Stop log") ); | 754 | m_recordLog->setText( tr("Stop log") ); |