Skip to content

Commit 520b94e

Browse files
committedOct 28, 2016
Fix can't save custom colours in color picker (fix #15760)
Also fixes a memory leak caused by color picker widget not being deleted
1 parent df9ce85 commit 520b94e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎src/gui/qgscolorbuttonv2.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -400,6 +400,7 @@ void QgsColorButtonV2::panelAccepted( QgsPanelWidget* widget )
400400
if ( QgsCompoundColorWidget* colorWidget = qobject_cast< QgsCompoundColorWidget* >( widget ) )
401401
{
402402
addRecentColor( colorWidget->color() );
403+
colorWidget->deleteLater();
403404
}
404405
}
405406

0 commit comments

Comments
 (0)
Please sign in to comment.