Commit a54eb412 authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX #82] This fixes a crash due to ruuning into an assert after trying to...

[FIX #82] This fixes a crash due to ruuning into an assert after trying to "reactivate" EEGView modules in module tree.
parent 461f5c09
......@@ -143,7 +143,7 @@ boost::shared_ptr<WGEViewer> WGraphicsEngine::createViewer( std::string name, os
// store it in viewer list
boost::mutex::scoped_lock lock( m_viewersLock );
bool insertSucceeded = m_viewers.insert( make_pair( name, viewer ) ).second;
assert( insertSucceeded == true );
assert( insertSucceeded == true ); // if false, viewer with same name already exists
return viewer;
}
......
......@@ -397,6 +397,7 @@ void WMEEGView::closeCustomWidget()
}
WKernel::getRunningKernel()->getGui()->closeCustomWidget( getName() );
m_widget.reset(); // forces need call of destructor
}
void WMEEGView::redraw()
......
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