From a862f62fe8bf0bf361df2df276f20d990431b7ab Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Sat, 25 Jul 2015 17:47:45 +0200 Subject: [PATCH] Set a default filename when saving a new database. Closes #308 --- src/gui/DatabaseTabWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/DatabaseTabWidget.cpp b/src/gui/DatabaseTabWidget.cpp index faf16f598..6518ded97 100644 --- a/src/gui/DatabaseTabWidget.cpp +++ b/src/gui/DatabaseTabWidget.cpp @@ -326,6 +326,9 @@ bool DatabaseTabWidget::saveDatabaseAs(Database* db) if (dbStruct.saveToFilename) { oldFileName = dbStruct.filePath; } + else { + oldFileName = tr("New database").append(".kdbx"); + } QString fileName = fileDialog()->getSaveFileName(this, tr("Save database as"), oldFileName, tr("KeePass 2 Database").append(" (*.kdbx)")); if (!fileName.isEmpty()) {