From: rkv Date: Fri, 29 Nov 2013 06:29:44 +0000 (+0000) Subject: Fix for the bug #44: Fuse, Cut and Split - disable color button for Transparent Backg... X-Git-Tag: BR_hydro_v_0_4~137 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=7d335be2e47197e9b7d1ddf1a20dc1f3fa9507bd;p=modules%2Fhydro.git Fix for the bug #44: Fuse, Cut and Split - disable color button for Transparent Background --- diff --git a/src/HYDROGUI/HYDROGUI_TwoImagesDlg.cxx b/src/HYDROGUI/HYDROGUI_TwoImagesDlg.cxx index 1ba4a668..44b0283e 100644 --- a/src/HYDROGUI/HYDROGUI_TwoImagesDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_TwoImagesDlg.cxx @@ -97,6 +97,8 @@ HYDROGUI_TwoImagesDlg::HYDROGUI_TwoImagesDlg( HYDROGUI_Module* theModule, const connect( myModifySelectedImage, SIGNAL( toggled( bool ) ), this, SLOT( onModifySelectedImage( bool ) ) ); + connect( myTransparent, SIGNAL( toggled( bool ) ), + myColorBox, SLOT( setDisabled( bool ) ) ); setMode( myMode, myIsEdit ); } @@ -114,6 +116,7 @@ void HYDROGUI_TwoImagesDlg::reset() myPolyline->Clear(); myTransparent->setChecked( true ); myColorBox->resetColor(); + myColorBox->setDisabled( true ); } void HYDROGUI_TwoImagesDlg::setMode( const int theMode, const bool theIsEdit )