]> Creatis software - clitk.git/commitdiff
Correct bug: when open roi on a non-3D image, the file browser still open.
authordsarrut <david.sarrut@gmail.com>
Tue, 3 May 2011 12:49:52 +0000 (14:49 +0200)
committerdsarrut <david.sarrut@gmail.com>
Tue, 3 May 2011 12:49:52 +0000 (14:49 +0200)
vv/vvToolStructureSetManager.cxx

index 16d53cb91cce2c0bcf8d5ed9dfe10c7e2bf693aa..151435faaf2c4d8f7f8480eaa79101029c431ba5 100644 (file)
@@ -137,6 +137,7 @@ void vvToolStructureSetManager::InputIsSelected(vvSlicerManager *m)
   if (mCurrentImage->GetNumberOfDimensions() != 3) {
     QMessageBox::information(this,tr("Sorry only 3D yet"), tr("Sorry only 3D yet"));
     close();
+    return;
   }
   // Hide selector
   HideInputSelector(); // splitter