Refresh fileInfo after creating the file.

Fixes canonicalFilePath() returning an empty string.
This commit is contained in:
Felix Geyer 2016-09-02 11:30:54 +02:00
parent 9bb291235d
commit 595b1011dd

View File

@ -390,6 +390,9 @@ bool DatabaseTabWidget::saveDatabaseAs(Database* db)
return false;
}
// refresh fileinfo since the file didn't exist before
fileInfo.refresh();
dbStruct.modified = false;
dbStruct.saveToFilename = true;
dbStruct.readOnly = false;