mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Fix readded (changed) hilights being in config twice, resulted in duplicate hilights or removed hilights coming back (Bug 39)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3293 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
2f81d1f160
commit
efb20d7cc2
@ -124,8 +124,8 @@ static void hilight_init_rec(HILIGHT_REC *rec)
|
|||||||
void hilight_create(HILIGHT_REC *rec)
|
void hilight_create(HILIGHT_REC *rec)
|
||||||
{
|
{
|
||||||
if (g_slist_find(hilights, rec) != NULL) {
|
if (g_slist_find(hilights, rec) != NULL) {
|
||||||
hilights = g_slist_remove(hilights, rec);
|
|
||||||
hilight_remove_config(rec);
|
hilight_remove_config(rec);
|
||||||
|
hilights = g_slist_remove(hilights, rec);
|
||||||
}
|
}
|
||||||
|
|
||||||
hilights = g_slist_append(hilights, rec);
|
hilights = g_slist_append(hilights, rec);
|
||||||
|
Loading…
Reference in New Issue
Block a user