From d290700e55376e44d2752e8ce4a2f17cd805f0e6 Mon Sep 17 00:00:00 2001 From: smh Date: Fri, 7 May 2004 12:42:20 +0000 Subject: [PATCH] Fix on Bug PAL5832 - V1_4_1a and current: There are problems with selection data on elements --- src/SALOMEGUI/SALOMEGUI.cxx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/SALOMEGUI/SALOMEGUI.cxx b/src/SALOMEGUI/SALOMEGUI.cxx index ba9f6a56e..1092b50f8 100644 --- a/src/SALOMEGUI/SALOMEGUI.cxx +++ b/src/SALOMEGUI/SALOMEGUI.cxx @@ -27,6 +27,8 @@ // $Header$ #include "SALOMEGUI.h" +#include "QAD_Desktop.h" + //============================================================================= /*! @@ -135,6 +137,15 @@ void SALOMEGUI::DefinePopup( QString & theContext, QString & theParent, QString //============================================================================= bool SALOMEGUI::ActiveStudyChanged( QAD_Desktop* parent ) { + //static QAD_Study* aPrevStudy = NULL; + //QAD_Study* aStudy = parent->getActiveStudy(); + //if(!aPrevStudy) + // aPrevStudy = aStudy; + //if(aStudy != aPrevStudy){ + // emit SignalCloseAllDialogs(); + // aPrevStudy = aStudy; + //} + emit SignalCloseAllDialogs(); return true; } -- 2.39.2