mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-05-10 10:35:17 -04:00
Fix coding style.
This commit is contained in:
parent
d2712b2a95
commit
e11b0061d4
1 changed files with 3 additions and 2 deletions
|
@ -159,9 +159,10 @@ void DatabaseManager::saveDatabase(Database* db)
|
|||
void DatabaseManager::saveDatabaseAs(Database* db)
|
||||
{
|
||||
DatabaseManagerStruct& dbStruct = m_dbList[db];
|
||||
QString oldFileName = QString();
|
||||
if (dbStruct.file)
|
||||
QString oldFileName;
|
||||
if (dbStruct.file) {
|
||||
oldFileName = dbStruct.fileName;
|
||||
}
|
||||
QString fileName = fileDialog()->getSaveFileName(m_window, tr("Save database as"),
|
||||
oldFileName, tr("KeePass 2 Database").append(" (*.kdbx)"));
|
||||
if (!fileName.isEmpty()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue