From: jfa Date: Wed, 7 Dec 2011 11:07:54 +0000 (+0000) Subject: 0021442: EDF 2044 GEOM: MakeCut leads to SIGSEGV when click on Apply&Close X-Git-Tag: V6_4_0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f8367f38b4aa892a4929db14bee23a67e6790b69;p=modules%2Fgui.git 0021442: EDF 2044 GEOM: MakeCut leads to SIGSEGV when click on Apply&Close --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index bf2a0e81a..394546a01 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -3831,7 +3831,17 @@ QString LightApp_Application::browseObjects( const QStringList& theEntryList, aSelector->setAutoBlock( false ); SUIT_DataOwnerPtrList aList; - aList.append( new LightApp_DataOwner( anEntry ) ); +#ifndef DISABLE_SALOMEOBJECT + Handle(SALOME_InteractiveObject) aSObj = new SALOME_InteractiveObject + ( anObject->entry().toLatin1().constData(), + anObject->componentDataType().toLatin1().constData(), + anObject->name().toLatin1().constData() ); + LightApp_DataOwner* owner = new LightApp_DataOwner( aSObj ); +#else + LightApp_DataOwner* owner = new LightApp_DataOwner( anEntry ); +#endif + + aList.append( owner ); selectionMgr()->setSelected( aList ); aResult = anEntry;