Fixed runtime warning when saving images.

This commit is contained in:
Leonardo Zide 2021-01-06 17:55:38 -08:00
parent f4461756bd
commit f89ae87c26

View file

@ -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&)));
}