From 4499838b970c70adc10336c890828c6fff06d3d7 Mon Sep 17 00:00:00 2001 From: dismine Date: Mon, 20 Jan 2014 16:57:54 +0200 Subject: [PATCH] Default name for pattern. --HG-- branch : develop --- src/mainwindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index d8dae5b8b..7133c5489 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -1009,7 +1009,8 @@ void MainWindow::ActionDetails(bool checked) void MainWindow::ActionSaveAs() { QString filters(tr("Pattern files (*.val)")); - QString fName = QFileDialog::getSaveFileName(this, tr("Save as"), QDir::homePath(), filters); + QString dir = QDir::homePath() + tr("/pattern.val"); + QString fName = QFileDialog::getSaveFileName(this, tr("Save as"), dir, filters); if (fName.isEmpty()) {