Commit 4475cc1f authored by Jan Möbius's avatar Jan Möbius

Some More directory settings

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@11167 383ad7c9-94d9-4d36-a494-682f7c89f535
parent da005d91
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
#include "PluginDialog.hh" #include "PluginDialog.hh"
#include <QtGui> #include <QtGui>
#include <QMessageBox> #include <QMessageBox>
#include <QFileDialog>
#include <OpenFlipper/BasePlugin/BaseInterface.hh> #include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include <OpenFlipper/common/GlobalOptions.hh> #include <OpenFlipper/common/GlobalOptions.hh>
......
...@@ -637,11 +637,19 @@ void CoreWidget::slotSnapshotName() { ...@@ -637,11 +637,19 @@ void CoreWidget::slotSnapshotName() {
QString fname = PluginFunctions::viewerProperties().snapshotName(); QString fname = PluginFunctions::viewerProperties().snapshotName();
fname.replace('%', '$'); fname.replace('%', '$');
fname = QFileDialog::getSaveFileName ( 0, tr("Save snapshot name") ); fname = QFileDialog::getSaveFileName ( 0,
tr("Save snapshot name"),
OpenFlipperSettings().value("Core/CurrentDir").toString());
if (!fname.isEmpty()) if (!fname.isEmpty())
{ {
fname.replace('$', '%'); fname.replace('$', '%');
// Get the chosen directory and remember it.
QFileInfo fileInfo(fname);
OpenFlipperSettings().setValue("Core/CurrentDir", fileInfo.absolutePath() );
PluginFunctions::viewerProperties().snapshotBaseFileName(fname); PluginFunctions::viewerProperties().snapshotBaseFileName(fname);
QString msg=tr("next snapshot: "); QString msg=tr("next snapshot: ");
statusBar()->showMessage(msg); statusBar()->showMessage(msg);
......
...@@ -75,7 +75,6 @@ ...@@ -75,7 +75,6 @@
#include <QLabel> #include <QLabel>
#include <QImage> #include <QImage>
#include <QColorDialog> #include <QColorDialog>
#include <QFileDialog>
#include <QToolTip> #include <QToolTip>
#include <QTextStream> #include <QTextStream>
#include <QDateTime> #include <QDateTime>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment