Added check in setThreadingModel so that it only sets up threading if the viewer is realized
This commit is contained in:
parent
9eb4beea52
commit
0c59589038
@ -170,7 +170,7 @@ void CompositeViewer::setThreadingModel(ThreadingModel threadingModel)
|
||||
|
||||
_threadingModel = threadingModel;
|
||||
|
||||
if (_threadingModel!=SingleThreaded) startThreading();
|
||||
if (isRealized() && _threadingModel!=SingleThreaded) startThreading();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user