rimmed pushed a commit to branch master.

http://git.enlightenment.org/tools/eflete.git/commit/?id=5290a842a3d84facfeec4e6b3577eead22e4b6b8

commit 5290a842a3d84facfeec4e6b3577eead22e4b6b8
Author: Vitalii Vorobiov <vi.vorob...@samsung.com>
Date:   Mon Mar 21 15:57:59 2016 +0200

    shortcuts: do not undo/redo when group's tab is not opened
---
 src/bin/ui/shortcuts/shortcuts.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/bin/ui/shortcuts/shortcuts.c b/src/bin/ui/shortcuts/shortcuts.c
index e4fed20..bf5e3f9 100644
--- a/src/bin/ui/shortcuts/shortcuts.c
+++ b/src/bin/ui/shortcuts/shortcuts.c
@@ -186,7 +186,10 @@ _zoom_out_cb(void)
 static Eina_Bool
 _undo_cb(void)
 {
+   Evas_Object *workspace = tabs_current_workspace_get();
+
    SKIP_IN_ENVENTOR_MODE
+   if (!workspace) return false;
 
    evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_UNDO, NULL);
    return true;
@@ -195,7 +198,10 @@ _undo_cb(void)
 static Eina_Bool
 _redo_cb(void)
 {
+   Evas_Object *workspace = tabs_current_workspace_get();
+
    SKIP_IN_ENVENTOR_MODE
+   if (!workspace) return false;
 
    evas_object_smart_callback_call(ap.win, SIGNAL_SHORTCUT_REDO, NULL);
    return true;

-- 


Reply via email to