From 1833a9079cd7801f333ac3885b447520e44f937f Mon Sep 17 00:00:00 2001 From: harlekin Date: Tue, 11 Jan 2005 16:03:50 +0000 Subject: possibility to set a default path for the save log dialog and also set the initial path into the titelbar --- 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 -#ifdef EAST #include -#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") ); -- cgit v0.9.0.2