mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2024-10-01 01:26:01 -04:00
Fix coding style.
This commit is contained in:
parent
d2712b2a95
commit
e11b0061d4
@ -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…
Reference in New Issue
Block a user