Commit 0b663e96 authored by Robin Eschbach's avatar Robin Eschbach
Browse files

[FIX #731] disable glwidget updates while loading

parent 89539b94
......@@ -800,6 +800,7 @@ void WMainWindow::asyncProjectLoad( std::string filename )
boost::placeholders::_2,
boost::placeholders::_3 ) ) );
setCurrentProject( filename );
m_mainGLWidget->setUpdatesEnabled( false );
proj->load();
}
......@@ -1074,6 +1075,7 @@ bool WMainWindow::event( QEvent* event )
if( event->type() == WQT_LOADFINISHED )
{
m_mainGLWidget->setUpdatesEnabled( true );
// convert event
WLoadFinishedEvent* e1 = dynamic_cast< WLoadFinishedEvent* >( event );
if( e1 )
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment