Skip to content

color: Don't update toolbar buttons when the toolbar is in destruction

GtkListBox's dispose function removes all rows, and gtk_list_box_remove () sends row-selected. In turn, as we listen to row-selected, we end up calling functions on our toolbar while it may be in the process of disposing. This causes a crash.

This commit introduces an early return if the toolbar is being destroyed.

Merge request reports