[gimp] app: don't warn in gimp_action_history_action_activated()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: don't warn in gimp_action_history_action_activated()
- Date: Thu, 4 Jul 2019 15:06:13 +0000 (UTC)
commit 87b1a2745973ce688edfc9dd39ac6db46fa2763e
Author: Michael Natterer <mitch gimp org>
Date: Thu Jul 4 17:04:33 2019 +0200
app: don't warn in gimp_action_history_action_activated()
if there is no "gimp". Happened after the action changes when invoking
the "quit" action.
app/widgets/gimpaction-history.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/app/widgets/gimpaction-history.c b/app/widgets/gimpaction-history.c
index 4a24f94fe2..37cdc0341a 100644
--- a/app/widgets/gimpaction-history.c
+++ b/app/widgets/gimpaction-history.c
@@ -359,7 +359,11 @@ gimp_action_history_action_activated (GimpAction *action)
GList *link;
GimpActionHistoryItem *item;
- g_return_if_fail (history.gimp != NULL);
+ /* Silently return when called at the wrong time, like when the
+ * activated action was "quit" and the history is already gone.
+ */
+ if (! history.gimp)
+ return;
config = GIMP_GUI_CONFIG (history.gimp->config);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]