Skip to content

Commit

Permalink
Fix can't save custom colours in color picker (fix #15760)
Browse files Browse the repository at this point in the history
Also fixes a memory leak caused by color picker widget not
being deleted
  • Loading branch information
nyalldawson committed Oct 28, 2016
1 parent df9ce85 commit 520b94e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gui/qgscolorbuttonv2.cpp
Expand Up @@ -400,6 +400,7 @@ void QgsColorButtonV2::panelAccepted( QgsPanelWidget* widget )
if ( QgsCompoundColorWidget* colorWidget = qobject_cast< QgsCompoundColorWidget* >( widget ) )
{
addRecentColor( colorWidget->color() );
colorWidget->deleteLater();
}
}

Expand Down

0 comments on commit 520b94e

Please sign in to comment.