mirror of
https://gitlab.gnome.org/GNOME/gimp
synced 2024-10-19 22:34:37 +00:00
app: remove unclear fix from gimp_tool_options_editor_tool_changed()
It was introduced in e7ade3f8ec
. The
g_return_if_fail() is IMO useless, the actual fix (which I kept) was
pulling the call to gimp_tool_options_editor_presets_update() inside
the if().
This commit is contained in:
parent
ba065a31ec
commit
88e8fbce17
|
@ -460,12 +460,6 @@ gimp_tool_options_editor_tool_changed (GimpContext *context,
|
|||
{
|
||||
GimpContainer *presets;
|
||||
GtkWidget *options_gui;
|
||||
|
||||
/* This will warn if tool info is changed to nothing.
|
||||
* This seems to happen if starting in SWM with tool editor visible
|
||||
* Maybe its normal, and the code should just be written to
|
||||
* handle this case, but someone smarter needs to take a look*/
|
||||
g_return_if_fail(GIMP_IS_TOOL_INFO(tool_info));
|
||||
|
||||
if (tool_info && tool_info->tool_options == editor->p->visible_tool_options)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue