diff options
Diffstat (limited to 'finch/gntaccount.c')
-rw-r--r-- | finch/gntaccount.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/finch/gntaccount.c b/finch/gntaccount.c index fa66b04a97..a08f7ffffb 100644 --- a/finch/gntaccount.c +++ b/finch/gntaccount.c @@ -765,7 +765,8 @@ account_list_key_pressed_cb(GntWidget *widget, const char *text, gpointer null) count = g_list_length(accounts); pos = g_list_index(accounts, account); pos = (move + pos + count + 1) % (count + 1); - purple_accounts_reorder(account, pos); + if (pos >= 0) + purple_accounts_reorder(account, pos); /* I don't like this, but recreating the entire list seems to be * the easiest way of doing it */ |