Skip to content
Snippets Groups Projects
Commit d70aab06 authored by Alexandre Savard's avatar Alexandre Savard
Browse files

[#3619] Fix instant messaging window segfault when hangup unsent call

parent 45f2b6a0
No related branches found
No related tags found
No related merge requests found
......@@ -343,10 +343,12 @@ im_widget_update_state (IMWidget *im, gboolean active)
}
/* if active = false, the call is over, we can't send text messages anymore */
else {
gtk_widget_set_sensitive (im->info_state, FALSE);
gtk_info_bar_set_message_type (GTK_INFO_BAR (im->info_bar),
GTK_MESSAGE_WARNING);
gtk_widget_set_tooltip_text (im->info_state, "Call has terminated");
if (im) {
gtk_widget_set_sensitive (im->info_state, FALSE);
gtk_info_bar_set_message_type (GTK_INFO_BAR (im->info_bar),
GTK_MESSAGE_WARNING);
gtk_widget_set_tooltip_text (im->info_state, "Call has terminated");
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment