From: stv Date: Wed, 1 Oct 2008 12:03:48 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: V5_1_0a3~30 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=e3af6ff536ba632f24dfb0441cc76fb3af9badef;p=modules%2Fgui.git *** empty log message *** --- diff --git a/src/Qtx/QtxColorButton.cxx b/src/Qtx/QtxColorButton.cxx index 17975ede1..7d9ca613b 100644 --- a/src/Qtx/QtxColorButton.cxx +++ b/src/Qtx/QtxColorButton.cxx @@ -104,7 +104,7 @@ QtxColorButton::QtxColorButton( QWidget* parent ) connect( this, SIGNAL( clicked( bool ) ), this, SLOT( onClicked( bool ) ) ); connect( pm, SIGNAL( aboutToShow() ), this, SLOT( onAboutToShow() ) ); -// myAutoButton->setVisible( false ); + myAutoButton->setVisible( false ); } /*! @@ -252,6 +252,9 @@ void QtxColorButton::onToggled( bool on ) */ void QtxColorButton::onAutoClicked( bool ) { + if ( menu() ) + menu()->hide(); + setColor( QColor() ); }