Skip to content
Snippets Groups Projects
Commit 4f774530 authored by Tristan Matthews's avatar Tristan Matthews
Browse files
parents b965c5d5 d2019aaa
Branches
Tags
No related merge requests found
...@@ -233,8 +233,15 @@ const gchar* account_list_get_current_id(void) ...@@ -233,8 +233,15 @@ const gchar* account_list_get_current_id(void)
void account_list_remove(const gchar *accountID) void account_list_remove(const gchar *accountID)
{ {
account_t *target = account_list_get_by_id(accountID); account_t *target = account_list_get_by_id(accountID);
if (target && !g_queue_remove(accountQueue, target)) if (target) {
#if GLIB_CHECK_VERSION(2, 30, 0)
if (!g_queue_remove(accountQueue, target))
ERROR("Could not remove account with ID %s", accountID); ERROR("Could not remove account with ID %s", accountID);
#else
g_queue_remove(accountQueue, target);
#endif
}
} }
gchar * account_list_get_ordered_list(void) gchar * account_list_get_ordered_list(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment