From e3af6ff536ba632f24dfb0441cc76fb3af9badef Mon Sep 17 00:00:00 2001 From: stv Date: Wed, 1 Oct 2008 12:03:48 +0000 Subject: [PATCH] *** empty log message *** --- src/Qtx/QtxColorButton.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() ); } -- 2.39.2