From 7d335be2e47197e9b7d1ddf1a20dc1f3fa9507bd Mon Sep 17 00:00:00 2001 From: rkv Date: Fri, 29 Nov 2013 06:29:44 +0000 Subject: [PATCH] Fix for the bug #44: Fuse, Cut and Split - disable color button for Transparent Background --- src/HYDROGUI/HYDROGUI_TwoImagesDlg.cxx | 3 +++ 1 file changed, 3 insertions(+) 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 ) -- 2.39.2