From 503bccefcb47422eb5f6383c4d507fdc56d77ea1 Mon Sep 17 00:00:00 2001 From: Simon Rit Date: Tue, 31 May 2011 14:58:19 +0200 Subject: [PATCH] Rolled back to drawing parent image if it were selected before instead of every time parent is changed --- vv/vvMainWindow.cxx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/vv/vvMainWindow.cxx b/vv/vvMainWindow.cxx index c3465c1..a15a114 100644 --- a/vv/vvMainWindow.cxx +++ b/vv/vvMainWindow.cxx @@ -1381,13 +1381,9 @@ void vvMainWindow::DisplayChanged(QTreeWidgetItem *clickedItem, int column) mSlicerManagers[slicerManagerIndex]->UpdateSlicer(column-1, true); mSlicerManagers[slicerManagerIndex]->UpdateInfoOnCursorPosition(column-1); DisplaySliders(slicerManagerIndex, column-1); - if(!draw) { - // We were not on this branch so far => force visibility - vis = true; - } - else if(clickedParentItem == clickedItem) { + if(clickedParentItem == clickedItem) { // Toggle - vis = !vis; + vis = !draw || !vis; } clickedSlicer->SetActorVisibility("image", 0, vis); clickedParentItem->setData(column, Qt::CheckStateRole, vis?2:0); -- 2.45.1