From: adv Date: Thu, 14 Nov 2013 08:55:01 +0000 (+0000) Subject: Doubled update of preview corrected. X-Git-Tag: BR_hydro_v_0_3~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=aa775769b0acadaf1b510b8c860670c896f2ba6d;p=modules%2Fhydro.git Doubled update of preview corrected. --- diff --git a/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.cxx b/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.cxx index b5f8a05e..697d37f8 100644 --- a/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.cxx @@ -119,8 +119,8 @@ HYDROGUI_ImmersibleZoneDlg::HYDROGUI_ImmersibleZoneDlg( HYDROGUI_Module* theModu // Connect signals and slots connect( myPolylines, SIGNAL( currentIndexChanged( int ) ), this, SLOT( onZoneDefChanged() ) ); - connect( myFillingTransparent, SIGNAL( toggled( bool ) ), this, SLOT( onZoneDefChanged() ) ); - connect( myFillingColor, SIGNAL( toggled( bool ) ), this, SLOT( onZoneDefChanged() ) ); + connect( myFillingTransparent, SIGNAL( toggled( bool ) ), this, SLOT( onFillingColorChanged( const bool ) ) ); + connect( myFillingColor, SIGNAL( toggled( bool ) ), this, SLOT( onFillingColorChanged( const bool ) ) ); connect( myFillingColorBox, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( onFillingColorChanged() ) ); connect( myBorderColorGroup, SIGNAL( toggled( bool ) ), this, SLOT( onZoneDefChanged() ) ); connect( myBorderColorBox, SIGNAL( colorChanged( const QColor& ) ), this, SLOT( onZoneDefChanged() ) ); @@ -262,6 +262,14 @@ void HYDROGUI_ImmersibleZoneDlg::onFillingColorChanged() onZoneDefChanged(); } +void HYDROGUI_ImmersibleZoneDlg::onFillingColorChanged( const bool theIsChecked ) +{ + if ( !theIsChecked ) + return; + + onZoneDefChanged(); +} + void HYDROGUI_ImmersibleZoneDlg::onZoneDefChanged() { if ( signalsBlocked() ) diff --git a/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.h b/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.h index 548580e8..1de986ce 100644 --- a/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.h +++ b/src/HYDROGUI/HYDROGUI_ImmersibleZoneDlg.h @@ -65,6 +65,7 @@ signals: private slots: void onZoneDefChanged(); void onFillingColorChanged(); + void onFillingColorChanged( const bool theIsChecked ); private: