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