Added check in setThreadingModel so that it only sets up threading if the viewer is realized

This commit is contained in:
Robert Osfield 2007-02-08 12:21:37 +00:00
parent 9eb4beea52
commit 0c59589038

View File

@ -170,7 +170,7 @@ void CompositeViewer::setThreadingModel(ThreadingModel threadingModel)
_threadingModel = threadingModel;
if (_threadingModel!=SingleThreaded) startThreading();
if (isRealized() && _threadingModel!=SingleThreaded) startThreading();
}