From: dmv Date: Thu, 5 Mar 2009 10:44:10 +0000 (+0000) Subject: IPAL20906 TC5.1.1: Selection Preferences do not work in previous study. Regress to... X-Git-Tag: V5_1_1rc2~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2f42007f56e6690258d32823e509e3ea11d250b8;p=modules%2Fgui.git IPAL20906 TC5.1.1: Selection Preferences do not work in previous study. Regress to 4.1.4, Sc. MESH-002. --- diff --git a/src/LightApp/LightApp_Application.cxx b/src/LightApp/LightApp_Application.cxx index 5cde588f6..5b8541c17 100644 --- a/src/LightApp/LightApp_Application.cxx +++ b/src/LightApp/LightApp_Application.cxx @@ -1661,6 +1661,9 @@ LightApp_Preferences* LightApp_Application::preferences( const bool crt ) const that->myPrefs = _prefs_; + connect( myPrefs, SIGNAL( preferenceChanged( QString&, QString&, QString& ) ), + this, SLOT( onPreferenceChanged( QString&, QString&, QString& ) ) ); + if ( !toCreate ) return myPrefs; @@ -1710,9 +1713,6 @@ LightApp_Preferences* LightApp_Application::preferences( const bool crt ) const } _prefs_->setItemProperty( "info", tr( "PREFERENCES_NOT_LOADED" ) ); - connect( myPrefs, SIGNAL( preferenceChanged( QString&, QString&, QString& ) ), - this, SLOT( onPreferenceChanged( QString&, QString&, QString& ) ) ); - return myPrefs; } @@ -1741,7 +1741,7 @@ void LightApp_Application::emptyPreferences( const QString& modName ) if ( !item || !item->isEmpty() ) return; - printf( "---------------------> Modify for empty module.\n" ); + // printf( "---------------------> Modify for empty module.\n" ); QtxPagePrefFrameItem* frm = new QtxPagePrefFrameItem( item->title(), item->parentItem() ); frm->setIcon( item->icon() );