Commit 5e08d714 authored by Michael Natterer's avatar Michael Natterer 😴

app: gimp_tools_exit(): destroy the tool manager before the tool options

The tool manager still keeps an active tool which it unrefs on
destruction, triggering a final HALT on the tool, which may want to
lookup tool options to reset something. Happened with the new
widget-ported rectangle select tool.
parent 8bf20a6c
......@@ -231,6 +231,8 @@ gimp_tools_exit (Gimp *gimp)
g_object_set_data (G_OBJECT (gimp), "gimp-tools-default-order", NULL);
tool_manager_exit (gimp);
for (list = gimp_get_tool_info_iter (gimp);
list = g_list_next (list))
......@@ -242,8 +244,6 @@ gimp_tools_exit (Gimp *gimp)
gtk_widget_destroy (options_gui);
gimp_tools_set_tool_options_gui (tool_info->tool_options, NULL);
tool_manager_exit (gimp);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment