]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
NRI : getComponentUserName( "KERNEL") instead of "Salome".
authornri <nri@opencascade.com>
Fri, 23 May 2003 09:34:04 +0000 (09:34 +0000)
committernri <nri@opencascade.com>
Fri, 23 May 2003 09:34:04 +0000 (09:34 +0000)
src/SALOMEGUI/QAD_Desktop.cxx
src/SALOMEGUI/QAD_Study.cxx

index 5baa010dfe967792d64fff0666840a2a5c131398..049b5882d8ca40c38ca456be6a0831e956b029fb 100644 (file)
@@ -2647,7 +2647,8 @@ void QAD_Desktop::onComboActiveComponent( const QString & component, bool isLoad
       if (!myXmlHandler->myIdList.IsEmpty()) clearMenus();
       if ( myCombo->currentText() != component )
        myCombo->setCurrentText( component );
-      if (component.compare(QString("Salome"))!= 0) {
+      //NRI if (component.compare(QString("Salome"))!= 0) {
+      if (component.compare( getComponentUserName( "KERNEL" ) )!= 0) {
 //     QApplication::setOverrideCursor( Qt::waitCursor );
        myActiveComp = component;
 
@@ -2691,7 +2692,8 @@ void QAD_Desktop::onComboActiveComponent( const QString & component, bool isLoad
 
       } else {  // component == "Salome"
        myActiveComp = "";
-       myActiveStudy->Selection( "Salome" );
+       //NRI   myActiveStudy->Selection( "Salome" );
+       myActiveStudy->Selection( getComponentUserName( "KERNEL" ) );
        SALOME_Selection* Sel = SALOME_Selection::Selection( myActiveStudy->getSelection() );
        Sel->ClearIObjects();
        for ( QToolButton* aButton=myComponentButton.first(); aButton; aButton=myComponentButton.next() ) {
@@ -3283,7 +3285,7 @@ void QAD_Desktop::helpSearch()
 void QAD_Desktop::helpContents()
 {
   if (myActiveComp == "")
-    myActiveComp = "Salome";
+    myActiveComp = getComponentUserName( "KERNEL" ); //NRI "Salome";
 
   QCString dir;
   QString root;
index 113237997e442cd768758c2f9d0694e9b3ae0c3f..9862b252b32e32b5f02bf42b4fb3d090b84f2d3c 100644 (file)
@@ -77,7 +77,8 @@ myPath( path )
     SCRUTE(_interp);
 
     /* create default selection */
-    Selection( "Salome" );
+    //NRI    Selection( "Salome" );
+    Selection( QAD_Application::getDesktop()->getComponentUserName( "KERNEL" ) );
 
     /* create study frame */
     myResult = true;