mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-04 15:39:34 +01:00
Refresh fileInfo after creating the file.
Fixes canonicalFilePath() returning an empty string.
This commit is contained in:
@@ -390,6 +390,9 @@ bool DatabaseTabWidget::saveDatabaseAs(Database* db)
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// refresh fileinfo since the file didn't exist before
|
||||||
|
fileInfo.refresh();
|
||||||
|
|
||||||
dbStruct.modified = false;
|
dbStruct.modified = false;
|
||||||
dbStruct.saveToFilename = true;
|
dbStruct.saveToFilename = true;
|
||||||
dbStruct.readOnly = false;
|
dbStruct.readOnly = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user