mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Slightly optimize update of activity list when a window is destroyed.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4801 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2e78cb54e0
commit
b2c8ba134b
@ -216,10 +216,13 @@ static void sig_statusbar_activity_hilight(WINDOW_REC *window, gpointer oldlevel
|
||||
|
||||
static void sig_statusbar_activity_window_destroyed(WINDOW_REC *window)
|
||||
{
|
||||
GList *node;
|
||||
|
||||
g_return_if_fail(window != NULL);
|
||||
|
||||
if (g_list_find(activity_list, window) != NULL)
|
||||
activity_list = g_list_remove(activity_list, window);
|
||||
node = g_list_find(activity_list, window);
|
||||
if (node != NULL)
|
||||
activity_list = g_list_delete_link(activity_list, node);
|
||||
statusbar_items_redraw("act");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user