From c91b41b9a7b6036908cfcbd4772168ba1ce0e013 Mon Sep 17 00:00:00 2001 From: asl Date: Sat, 21 Nov 2009 12:14:55 +0000 Subject: [PATCH] Porting to new notebook mechanism --- src/SalomeApp/SalomeApp_DataObject.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/SalomeApp/SalomeApp_DataObject.cxx b/src/SalomeApp/SalomeApp_DataObject.cxx index 6db6c32ca..e3511dce4 100644 --- a/src/SalomeApp/SalomeApp_DataObject.cxx +++ b/src/SalomeApp/SalomeApp_DataObject.cxx @@ -25,6 +25,7 @@ #include "SalomeApp_DataObject.h" #include "SalomeApp_Study.h" #include "SalomeApp_Application.h" +#include "SalomeApp_Notebook.h" #include @@ -489,7 +490,7 @@ QString SalomeApp_DataObject::value( const _PTR(SObject)& obj ) const { if ( SalomeApp_Study* aStudy = dynamic_cast( 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 + ", " ); } -- 2.39.2