Skip to content
Snippets Groups Projects
Commit 4f774530 authored by Tristan Matthews's avatar Tristan Matthews
Browse files
parents b965c5d5 d2019aaa
No related branches found
No related tags found
No related merge requests found
......@@ -233,8 +233,15 @@ const gchar* account_list_get_current_id(void)
void account_list_remove(const gchar *accountID)
{
account_t *target = account_list_get_by_id(accountID);
if (target && !g_queue_remove(accountQueue, target))
ERROR("Could not remove account with ID %s", accountID);
if (target) {
#if GLIB_CHECK_VERSION(2, 30, 0)
if (!g_queue_remove(accountQueue, target))
ERROR("Could not remove account with ID %s", accountID);
#else
g_queue_remove(accountQueue, target);
#endif
}
}
gchar * account_list_get_ordered_list(void)
......
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