mirror of
https://github.com/irssi/irssi.git
synced 2026-08-16 23:22:16 +02: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue