From 2f42007f56e6690258d32823e509e3ea11d250b8 Mon Sep 17 00:00:00 2001 From: dmv Date: Thu, 5 Mar 2009 10:44:10 +0000 Subject: [PATCH] IPAL20906 TC5.1.1: Selection Preferences do not work in previous study. Regress to 4.1.4, Sc. MESH-002. --- src/LightApp/LightApp_Application.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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() ); -- 2.39.2