Fix coding style.

This commit is contained in:
Felix Geyer 2011-12-28 19:05:31 +01:00
parent d2712b2a95
commit e11b0061d4

View File

@ -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()) {