From e15af29e1ae239a269f1cdac6a5860d7890d4f1e Mon Sep 17 00:00:00 2001 From: apo Date: Wed, 3 May 2006 09:06:27 +0000 Subject: [PATCH] Fix for Bug12310 TC: VISU popup for creation of presentation in case of missed VTK viewer does not work --- src/VISUGUI/VisuGUI_Prs3dTools.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/VISUGUI/VisuGUI_Prs3dTools.h b/src/VISUGUI/VisuGUI_Prs3dTools.h index 3fc626bb..7b55eefc 100644 --- a/src/VISUGUI/VisuGUI_Prs3dTools.h +++ b/src/VISUGUI/VisuGUI_Prs3dTools.h @@ -245,13 +245,11 @@ namespace VISU void CreatePrs3d(VisuGUI* theModule) { - if (SUIT_ViewManager* aViewManager = theModule->getApp()->activeViewManager()) { - QString aType = aViewManager->getType(); - if (aType == VVTK_Viewer::Type()) - CreatePrs3d(theModule); - else - CreatePrs3d(theModule); - } + if (SUIT_ViewManager* aViewManager = theModule->getApp()->activeViewManager()) + if (aViewManager->getType() == VVTK_Viewer::Type()) + return CreatePrs3d(theModule); + + CreatePrs3d(theModule); } } -- 2.39.2