-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 @@ -28,7 +28,5 @@ using namespace Opie::Ui; #include <assert.h> -#ifdef EAST #include <opie2/oconfig.h> -#endif MainWindow::MainWindow(QWidget *parent, const char *name, WFlags) : QMainWindow(parent, name, WStyle_ContextHelp) { @@ -748,5 +746,8 @@ void MainWindow::slotSaveLog() { 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; |