diff options
Diffstat (limited to 'src/ui/chat.c')
-rw-r--r-- | src/ui/chat.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/ui/chat.c b/src/ui/chat.c index 3ac4847..548a307 100644 --- a/src/ui/chat.c +++ b/src/ui/chat.c | |||
@@ -1536,7 +1536,7 @@ ui_chat_add_message(UI_CHAT_Handle *handle, | |||
1536 | MESSENGER_Application *app, | 1536 | MESSENGER_Application *app, |
1537 | UI_MESSAGE_Handle *message) | 1537 | UI_MESSAGE_Handle *message) |
1538 | { | 1538 | { |
1539 | GNUNET_assert((handle) && (message)); | 1539 | GNUNET_assert((handle) && (message) && (message->message_box)); |
1540 | 1540 | ||
1541 | gtk_container_add( | 1541 | gtk_container_add( |
1542 | GTK_CONTAINER(handle->messages_listbox), | 1542 | GTK_CONTAINER(handle->messages_listbox), |
@@ -1557,7 +1557,7 @@ ui_chat_remove_message(UI_CHAT_Handle *handle, | |||
1557 | UNUSED MESSENGER_Application *app, | 1557 | UNUSED MESSENGER_Application *app, |
1558 | UI_MESSAGE_Handle *message) | 1558 | UI_MESSAGE_Handle *message) |
1559 | { | 1559 | { |
1560 | GNUNET_assert((handle) && (message)); | 1560 | GNUNET_assert((handle) && (message) && (message->message_box)); |
1561 | 1561 | ||
1562 | handle->messages = g_list_remove(handle->messages, message); | 1562 | handle->messages = g_list_remove(handle->messages, message); |
1563 | 1563 | ||
@@ -1590,7 +1590,8 @@ void | |||
1590 | ui_chat_remove_file_load(UI_CHAT_Handle *handle, | 1590 | ui_chat_remove_file_load(UI_CHAT_Handle *handle, |
1591 | UI_FILE_LOAD_ENTRY_Handle *file_load) | 1591 | UI_FILE_LOAD_ENTRY_Handle *file_load) |
1592 | { | 1592 | { |
1593 | GNUNET_assert((handle) && (file_load) && (handle == file_load->chat)); | 1593 | GNUNET_assert((handle) && (file_load) && (handle == file_load->chat) && |
1594 | (file_load->entry_box)); | ||
1594 | 1595 | ||
1595 | handle->loads = g_list_remove(handle->loads, file_load); | 1596 | handle->loads = g_list_remove(handle->loads, file_load); |
1596 | 1597 | ||