summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-12-01 11:40:23 +0200
committerYakov Goldberg <yakov.g@samsung.com>2014-12-01 11:40:23 +0200
commit93b67e2aa1f4d7d2c97bb2c3a1627165c2a6f27e (patch)
treef760650608fa4c4512ff1d403bd8f8c6aff81a27 /src/bin
parentc502af85cd46fead52e2829965a19147a1ebb69c (diff)
Check if start is selected when starting simulation
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/egui_gui/egui_logic.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/bin/egui_gui/egui_logic.c b/src/bin/egui_gui/egui_logic.c
index 4e3e003..138295d 100644
--- a/src/bin/egui_gui/egui_logic.c
+++ b/src/bin/egui_gui/egui_logic.c
@@ -719,8 +719,16 @@ static void
719_toolbar_simulate_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED) 719_toolbar_simulate_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info EINA_UNUSED)
720{ 720{
721 Target_Desc *td = data; 721 Target_Desc *td = data;
722 Gui_Context *ctx = _active_context_get();
722 Gui_Session *session = NULL; 723 Gui_Session *session = NULL;
723 session = simulator_ctx_call(_active_context_get(), target_name_get(td)); 724
725 if (!gui_context_start_points_get(ctx))
726 {
727 ERR("Add popup window: no start point is selected");
728 return;
729 }
730
731 session = simulator_ctx_call(ctx, target_name_get(td));
724 if (session) 732 if (session)
725 { 733 {
726 Eo *menu = elm_toolbar_item_menu_get(g_main_wdgs->main_win->toolbar_simulate_it); 734 Eo *menu = elm_toolbar_item_menu_get(g_main_wdgs->main_win->toolbar_simulate_it);