]> Creatis software - clitk.git/commitdiff
Change current image when using tab key
authorSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 24 May 2011 13:14:19 +0000 (15:14 +0200)
committerSimon Rit <simon.rit@creatis.insa-lyon.fr>
Tue, 24 May 2011 13:14:19 +0000 (15:14 +0200)
vv/vvMainWindow.cxx

index 760c4a701426c4d016bcd32c2e6c6d5de1d7d4a3..5fe237fc8ba7a30a2acce73000c3ef823b903fc6 100644 (file)
@@ -2317,8 +2317,8 @@ void vvMainWindow::ChangeImageWithIndexOffset(vvSlicerManager *sm, int slicer, i
   index = (index+offset) % mSlicerManagers.size();
 
   QTreeWidgetItem* item = GetItemFromSlicerManager(mSlicerManagers[index]);
-  //CurrentImageChanged(mSlicerManagers[index]->GetId()); //select new image
   item->setData(slicer+1,Qt::CheckStateRole,2);         //change checkbox
+  CurrentImageChanged(mSlicerManagers[index]->GetId()); //select new image
   DisplayChanged(item,slicer+1);
 }
 //------------------------------------------------------------------------------