app: don't print a NULL insensitive action reason.

Print an empty string itself, otherwise it actually displays "(null)".
And anyway it's not clean code to use a NULL pointer in a printf format.
This commit is contained in:
Jehan 2021-04-24 23:26:33 +02:00
parent ef2402bf8e
commit c8020c20a5
1 changed files with 1 additions and 1 deletions

View File

@ -414,7 +414,7 @@ gimp_action_set_proxy_tooltip (GimpAction *action,
"<i><span weight='light'>%s</span></i>", /* Inactive reason */
tooltip,
escaped_reason && tooltip ? "\n" : "",
escaped_reason);
escaped_reason ? escaped_reason : "");
if (tooltip || escaped_reason)
gimp_help_set_help_data_with_markup (proxy, markup,