fix infinite loop when changing ibar sources

fix T1951
This commit is contained in:
Mike Blumenkrantz 2015-04-30 17:04:47 -04:00 committed by Cedric BAIL
parent dbf644683b
commit a20c94e499
1 changed files with 4 additions and 1 deletions

View File

@ -181,7 +181,10 @@ _ibar_order_refresh(IBar *b, const char *path)
/* else same order, refresh all users */
}
else
io = b->io = _ibar_order_new(b, path);
{
_ibar_order_del(b);
io = b->io = _ibar_order_new(b, path);
}
EINA_LIST_FOREACH(io->bars, l, bar)
{
_ibar_empty(bar);