mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Fixed runtime warning when saving images.
This commit is contained in:
parent
f4461756bd
commit
f89ae87c26
1 changed files with 1 additions and 1 deletions
|
@ -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&)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue