From bebd3fa6464712b362524537fa6805fb9bf45a28 Mon Sep 17 00:00:00 2001 From: asv Date: Thu, 9 Mar 2006 14:16:59 +0000 Subject: [PATCH] added check for Save Point object in canBeDisplayed branch. Save Point objects can NOT be displayed. --- src/LightApp/LightApp_Selection.cxx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/LightApp/LightApp_Selection.cxx b/src/LightApp/LightApp_Selection.cxx index bca35cfec..454ee5320 100644 --- a/src/LightApp/LightApp_Selection.cxx +++ b/src/LightApp/LightApp_Selection.cxx @@ -153,7 +153,12 @@ QtxValue LightApp_Selection::param( const int ind, const QString& p ) const LightApp_Displayer* d = LightApp_Displayer::FindDisplayer( mod_name, false ); // false in last parameter means that now we doesn't load module, if it isn't loaded - return QtxValue( d ? d->canBeDisplayed( myEntries[ ind ] ) : true, 0 ); + if ( d ) + return d->canBeDisplayed( myEntries[ ind ] ); + else if ( myEntries[ ind ].startsWith( QObject::tr( "SAVE_POINT_DEF_NAME" ) ) ) // object is a Save Point object + return false; + + return true; //now if displayer is null, it means, that according module isn't loaded, so that we allow to all display/erase //operations under object } -- 2.39.2