Skip to content
Permalink
Browse files

Fix can't save custom colours in color picker (fix #15760)

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 520b94e405512cdf3a3b1ffa9cd804402387332f
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgscolorbuttonv2.cpp
@@ -400,6 +400,7 @@ void QgsColorButtonV2::panelAccepted( QgsPanelWidget* widget )
if ( QgsCompoundColorWidget* colorWidget = qobject_cast< QgsCompoundColorWidget* >( widget ) )
{
addRecentColor( colorWidget->color() );
colorWidget->deleteLater();
}
}

0 comments on commit 520b94e

Please sign in to comment.
You can’t perform that action at this time.