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
This commit is contained in:
Mykyta Biliavskyi 2014-08-27 17:07:23 +09:00 committed by ChunEon Park
parent 99af6d4b9e
commit 9de2aaef00
1 changed files with 1 additions and 3 deletions

View File

@ -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);