plot: Use default location from preferences dialog when saving picture

This commit is contained in:
Martin Kleusberg
2014-10-15 19:53:06 +02:00
parent 19baeb2a7a
commit 280d5c1773

View File

@@ -1680,7 +1680,7 @@ void MainWindow::on_butSavePlot_clicked()
{
QString fileName = QFileDialog::getSaveFileName(this,
tr("Choose a filename to save under"),
QString(),
PreferencesDialog::getSettingsValue("db", "defaultlocation").toString(),
tr("PNG(*.png);;JPG(*.jpg);;PDF(*.pdf);;BMP(*.bmp);;All Files(*)")
);
if(!fileName.isEmpty())