app: in gimp_tool_gui_set_response_sensitive(), allow non-existent ID

In gimp_tool_gui_set_response_sensitive(), silently ignore non-
existent response IDs, instead of emitting a CRITICAL, to match the
behavior of GtkDialog and GimpOverlayDialog.  This simplifies code
with optional dialog responses.

(cherry picked from commit 92216a635a)
This commit is contained in:
Ell
2019-03-13 04:17:47 -04:00
parent 9ee3ee9aaa
commit f6229c921a

View File

@ -709,7 +709,8 @@ gimp_tool_gui_set_response_sensitive (GimpToolGui *gui,
entry = response_entry_find (private->response_entries, response_id); entry = response_entry_find (private->response_entries, response_id);
g_return_if_fail (entry != NULL); if (! entry)
return;
entry->sensitive = sensitive; entry->sensitive = sensitive;