hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=9de2aaef006768952e54393f755ec4a056606bad

commit 9de2aaef006768952e54393f755ec4a056606bad
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Wed Aug 27 17:07:23 2014 +0900

    live_edit: create menu if it still does not created.
    
    Summary:
    create menu object if it does not created early, and just move menu if
    it already created.
    @fix
    
    Reviewers: Hermet
    
    Subscribers: NikaWhite
    
    Projects: #enventor
    
    Differential Revision: https://phab.enlightenment.org/D1356
---
 src/bin/live_edit.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/bin/live_edit.c b/src/bin/live_edit.c
index ebf237f..0a98dcb 100644
--- a/src/bin/live_edit.c
+++ b/src/bin/live_edit.c
@@ -289,9 +289,7 @@ layout_mouse_up_cb(void *data, Evas *e EINA_UNUSED,
    // Check if the right button is pressed
    if (ev->button != 3) return;
 
-   if (ld->menu) return;
-
-   ld->menu = menu_create(obj, ld);
+   if (!ld->menu) ld->menu = menu_create(obj, ld);
 
    elm_menu_move(ld->menu, ev->canvas.x, ev->canvas.y);
    evas_object_show(ld->menu);

-- 


Reply via email to