Unify code

This commit is contained in:
Nyall Dawson 2019-01-17 14:10:45 +10:00
parent 3d283c1b05
commit 572e2d5415

View File

@ -495,7 +495,7 @@ QPixmap QgsColorButton::createMenuIcon( const QColor &color, const bool showChec
void QgsColorButton::buttonClicked()
{
if ( !mLinkedColorName.isEmpty() )
if ( linkedProjectColor().isValid() )
{
QToolButton::showMenu();
}