cedric pushed a commit to branch enlightenment-0.17.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=a20c94e4991f6adea1a4e314886137ef78d6a690

commit a20c94e4991f6adea1a4e314886137ef78d6a690
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Thu Apr 30 17:04:47 2015 -0400

    fix infinite loop when changing ibar sources
    
    fix T1951
---
 src/modules/ibar/e_mod_main.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/modules/ibar/e_mod_main.c b/src/modules/ibar/e_mod_main.c
index 1e87a72..b885b6f 100644
--- a/src/modules/ibar/e_mod_main.c
+++ b/src/modules/ibar/e_mod_main.c
@@ -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);

-- 


Reply via email to