X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSalomeApp%2FSalomeApp_Selection.cxx;h=39ecc9b1cba5df2ff2cb3709b532d05f0b78f59f;hb=4d8c90248b97330c40154a715bdb0437e4771b06;hp=85bcc90c7391437ebe2da5acea344a19d423c9bb;hpb=2e750f9ded92337bc3c44e9d7388180974cc4a43;p=modules%2Fgui.git diff --git a/src/SalomeApp/SalomeApp_Selection.cxx b/src/SalomeApp/SalomeApp_Selection.cxx index 85bcc90c7..39ecc9b1c 100644 --- a/src/SalomeApp/SalomeApp_Selection.cxx +++ b/src/SalomeApp/SalomeApp_Selection.cxx @@ -27,7 +27,7 @@ void SalomeApp_Selection::init( const QString& client, SalomeApp_SelectionMgr* m myStudy = dynamic_cast( mgr->application()->activeStudy() ); SUIT_DataOwnerPtrList sel; - mgr->selected( sel ); + mgr->selected( sel, client ); SUIT_DataOwnerPtrList::const_iterator anIt = sel.begin(), aLast = sel.end(); for( ; anIt!=aLast; anIt++ ) { @@ -46,12 +46,20 @@ int SalomeApp_Selection::count() const return myEntries.count(); } -QtxValue SalomeApp_Selection::param( const int ind, const QString& p ) const +QtxValue SalomeApp_Selection::param( const int, const QString& p ) const { - if ( p == "client" ) + if( p=="client" ) return myPopupClient; + else + return QtxValue(); +} - return QtxValue(); +QtxValue SalomeApp_Selection::globalParam( const QString& p ) const +{ + if( p=="client" ) + return myPopupClient; + else + return QtxPopupMgr::Selection::globalParam( p ); } void SalomeApp_Selection::processOwner( const SalomeApp_DataOwner* )