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 @@
#include "PluginDialog.hh"
#include <QtGui>
#include <QMessageBox>
#include <QFileDialog>
#include <OpenFlipper/BasePlugin/BaseInterface.hh>
#include <OpenFlipper/common/GlobalOptions.hh>
......
......@@ -637,11 +637,19 @@ void CoreWidget::slotSnapshotName() {
QString fname = PluginFunctions::viewerProperties().snapshotName();
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())
{
fname.replace('$', '%');
// Get the chosen directory and remember it.
QFileInfo fileInfo(fname);
OpenFlipperSettings().setValue("Core/CurrentDir", fileInfo.absolutePath() );
PluginFunctions::viewerProperties().snapshotBaseFileName(fname);
QString msg=tr("next snapshot: ");
statusBar()->showMessage(msg);
......
......@@ -75,7 +75,6 @@
#include <QLabel>
#include <QImage>
#include <QColorDialog>
#include <QFileDialog>
#include <QToolTip>
#include <QTextStream>
#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