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:
Michael Natterer 2014-10-09 00:33:33 +02:00
parent ba065a31ec
commit 88e8fbce17

View file

@ -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;