Commit 01c90b9a authored by Alexander Wiebel's avatar Alexander Wiebel
Browse files

[FIX #129] test to for bitfield instead of data set to really fix the

crashes with the early selected ROIs.
parent e457fb27
......@@ -604,9 +604,9 @@ void WMainWindow::slotActivateModule( QString module )
void WMainWindow::newRoi()
{
// do nothing if we can not get
if( !WKernel::getRunningKernel()->getRoiManager()->getDataSet() )
if( !WKernel::getRunningKernel()->getRoiManager()->getBitField() )
{
wlog::warn( "WMainWindow" ) << "Refused to add ROI, as ROIManager does not have data set associated.";
wlog::warn( "WMainWindow" ) << "Refused to add ROI, as ROIManager does not have computed its bitfield yet.";
return;
}
......
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