From bde205cfe3d1b0f22cc7f91e3cf1bed70771951f Mon Sep 17 00:00:00 2001 From: James Booth Date: Thu, 7 Nov 2013 22:20:30 +0000 Subject: [PATCH] Use correct type in account rename for priorities fixes #250 --- src/config/accounts.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/config/accounts.c b/src/config/accounts.c index cdc802ae..4a2aff70 100644 --- a/src/config/accounts.c +++ b/src/config/accounts.c @@ -342,15 +342,15 @@ accounts_rename(const char * const account_name, const char * const new_name) g_key_file_get_boolean(accounts, account_name, "enabled", NULL)); g_key_file_set_integer(accounts, new_name, "priority.online", - g_key_file_get_boolean(accounts, account_name, "priority.online", NULL)); + g_key_file_get_integer(accounts, account_name, "priority.online", NULL)); g_key_file_set_integer(accounts, new_name, "priority.chat", - g_key_file_get_boolean(accounts, account_name, "priority.chat", NULL)); + g_key_file_get_integer(accounts, account_name, "priority.chat", NULL)); g_key_file_set_integer(accounts, new_name, "priority.away", - g_key_file_get_boolean(accounts, account_name, "priority.away", NULL)); + g_key_file_get_integer(accounts, account_name, "priority.away", NULL)); g_key_file_set_integer(accounts, new_name, "priority.xa", - g_key_file_get_boolean(accounts, account_name, "priority.xa", NULL)); + g_key_file_get_integer(accounts, account_name, "priority.xa", NULL)); g_key_file_set_integer(accounts, new_name, "priority.dnd", - g_key_file_get_boolean(accounts, account_name, "priority.dnd", NULL)); + g_key_file_get_integer(accounts, account_name, "priority.dnd", NULL)); // copy other string properties int i;