]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Porting to new notebook mechanism
authorasl <asl@opencascade.com>
Sat, 21 Nov 2009 12:14:55 +0000 (12:14 +0000)
committerasl <asl@opencascade.com>
Sat, 21 Nov 2009 12:14:55 +0000 (12:14 +0000)
src/SalomeApp/SalomeApp_DataObject.cxx

index 6db6c32ca460b10978a5221eb584384962df6911..e3511dce4b0e2e919045150b705948fe7efd53c2 100644 (file)
@@ -25,6 +25,7 @@
 #include "SalomeApp_DataObject.h"
 #include "SalomeApp_Study.h"
 #include "SalomeApp_Application.h"
+#include "SalomeApp_Notebook.h"
 
 #include <CAM_DataObject.h>
 
@@ -489,7 +490,7 @@ QString SalomeApp_DataObject::value( const _PTR(SObject)& obj ) const
     {
       if ( SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>( aRoot->study() ) )
       {
-        _PTR(Study) studyDS( aStudy->studyDS() );
+        SalomeApp_Notebook aNb( aStudy );
 
        bool ok = false;
        QStringList aSectionList = aStrings.split( "|" );
@@ -503,7 +504,7 @@ QString SalomeApp_DataObject::value( const _PTR(SObject)& obj ) const
            for ( int i = 0, n = aStringList.size(); i < n; i++ )
            {
              QString aStr = aStringList[i];
-             if ( studyDS->IsVariable( aStr.toStdString() ) )
+             if ( aNb.get( aStr ).isValid() )
                val.append( aStr + ", " );
            }