From 595b1011dd585bd23f74fe357e59895c4a660fcb Mon Sep 17 00:00:00 2001 From: Felix Geyer Date: Fri, 2 Sep 2016 11:30:54 +0200 Subject: [PATCH] Refresh fileInfo after creating the file. Fixes canonicalFilePath() returning an empty string. --- src/gui/DatabaseTabWidget.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gui/DatabaseTabWidget.cpp b/src/gui/DatabaseTabWidget.cpp index 0478222eb..65c54309d 100644 --- a/src/gui/DatabaseTabWidget.cpp +++ b/src/gui/DatabaseTabWidget.cpp @@ -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;