From: smh Date: Fri, 7 May 2004 12:42:20 +0000 (+0000) Subject: Fix on Bug PAL5832 X-Git-Tag: Ecole_Ete_a4~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d290700e55376e44d2752e8ce4a2f17cd805f0e6;p=modules%2Fkernel.git Fix on Bug PAL5832 - V1_4_1a and current: There are problems with selection data on elements --- 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; }