summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-05-25 16:40:34 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-05-25 16:40:34 +0300
commit5e96b973deeef34283379a96f7c155fc3f30ae4a (patch)
tree4092802b75c6d252520063324d6526de256aba81
parent3edab309f4e64172726bfbfe5715297a7d749dd2 (diff)
print warning, when there is no active context
-rw-r--r--src/bin/egui_gui/egui_logic.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/bin/egui_gui/egui_logic.c b/src/bin/egui_gui/egui_logic.c
index e2ec657..1dc767b 100644
--- a/src/bin/egui_gui/egui_logic.c
+++ b/src/bin/egui_gui/egui_logic.c
@@ -297,6 +297,12 @@ _toolbar_item_sel_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info
297{ 297{
298 intptr_t action = (intptr_t) data; 298 intptr_t action = (intptr_t) data;
299 static Eina_Bool fctr_table_vertical = EINA_FALSE; 299 static Eina_Bool fctr_table_vertical = EINA_FALSE;
300 const Gui_Context *ctx = _active_context_get();
301 if (!ctx)
302 {
303 printf("project is not open\n");
304 return;
305 }
300 switch (action) 306 switch (action)
301 { 307 {
302 case WDG_DELETE: 308 case WDG_DELETE: