Skip to content

Commit

Permalink
Refresh fileInfo after creating the file.
Browse files Browse the repository at this point in the history
Fixes canonicalFilePath() returning an empty string.
  • Loading branch information
debfx committed Sep 2, 2016
1 parent 9bb2912 commit 595b101
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/DatabaseTabWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 595b101

Please sign in to comment.