Skip to content

Commit

Permalink
Unify code
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jan 17, 2019
1 parent 3d283c1 commit 572e2d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgscolorbutton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ QPixmap QgsColorButton::createMenuIcon( const QColor &color, const bool showChec

void QgsColorButton::buttonClicked()
{
if ( !mLinkedColorName.isEmpty() )
if ( linkedProjectColor().isValid() )
{
QToolButton::showMenu();
}
Expand Down

0 comments on commit 572e2d5

Please sign in to comment.