From 9f50647ddb1044454213ff686d29748283ad81fb Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 7 Apr 2023 07:56:16 -0400 Subject: [PATCH] textview: Handle a return value --- gtk/gtktextview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 465e5cd25b..c384002f76 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -9231,7 +9231,8 @@ append_bubble_item (GtkTextView *text_view, muxer = _gtk_widget_get_action_muxer (GTK_WIDGET (text_view), FALSE); if (muxer) { - gtk_action_muxer_query_action (muxer, action_name, &enabled, ¶m_type, &state_type, NULL, NULL); + if (!gtk_action_muxer_query_action (muxer, action_name, &enabled, ¶m_type, &state_type, NULL, NULL)) + return; if (!enabled) return; -- 2.30.2