diff options
-rw-r--r-- | src/Authoring/Studio/Application/ProjectFile.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Authoring/Studio/Application/ProjectFile.cpp b/src/Authoring/Studio/Application/ProjectFile.cpp index e35eb033..98f5fa74 100644 --- a/src/Authoring/Studio/Application/ProjectFile.cpp +++ b/src/Authoring/Studio/Application/ProjectFile.cpp @@ -416,6 +416,10 @@ QString ProjectFile::createPreview() { CDoc *doc = g_StudioApp.GetCore()->GetDoc(); QString uipPrvPath = doc->GetDocumentPath(); + + // Commit all open transactions + doc->IKnowWhatIAmDoingForceCloseTransaction(); + // create a preview uip if doc modified if (doc->IsModified()) { uipPrvPath.replace(QLatin1String(".uip"), QLatin1String("_@preview@.uip")); |