From f89ae87c262e85152d0c10071c896e58210caf3a Mon Sep 17 00:00:00 2001 From: Leonardo Zide Date: Wed, 6 Jan 2021 17:55:38 -0800 Subject: [PATCH] Fixed runtime warning when saving images. --- common/project.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/project.cpp b/common/project.cpp index d01d236d..1a32657a 100644 --- a/common/project.cpp +++ b/common/project.cpp @@ -70,7 +70,7 @@ Project::Project(bool IsPreview) mActiveModel->SetSaved(); mModels.Add(mActiveModel); - if (!mIsPreview) + if (!mIsPreview && gMainWindow) QObject::connect(&mFileWatcher, SIGNAL(fileChanged(const QString&)), gMainWindow, SLOT(ProjectFileChanged(const QString&))); }