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