Default name for pattern.

--HG--
branch : develop
This commit is contained in:
dismine 2014-01-20 16:57:54 +02:00
parent 110ad09b21
commit 4499838b97

View File

@ -1009,7 +1009,8 @@ void MainWindow::ActionDetails(bool checked)
void MainWindow::ActionSaveAs() void MainWindow::ActionSaveAs()
{ {
QString filters(tr("Pattern files (*.val)")); 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()) if (fName.isEmpty())
{ {