summaryrefslogtreecommitdiff
path: root/src/modules/tiling
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-04-20 18:27:06 +0200
committerBoris Faure <billiob@gmail.com>2013-04-20 18:27:06 +0200
commitde187284fc54abc4ee68b6ec6a05a6cee2de01bf (patch)
tree4af3168ea0d53a984e444fce32c9984274437e42 /src/modules/tiling
parent2a7a3a557f1f5977a01b048ede95e7f3468a62c2 (diff)
downloadenlightenment-de187284fc54abc4ee68b6ec6a05a6cee2de01bf.tar.gz
tiling: fix segv when adding a stack without config
Diffstat (limited to 'src/modules/tiling')
-rw-r--r--src/modules/tiling/e_mod_tiling.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/tiling/e_mod_tiling.c b/src/modules/tiling/e_mod_tiling.c
index d0769e5f93..cab27b9e1d 100644
--- a/src/modules/tiling/e_mod_tiling.c
+++ b/src/modules/tiling/e_mod_tiling.c
@@ -1175,6 +1175,8 @@ _e_mod_action_add_stack_cb(E_Object *obj __UNUSED__,
end_special_input();
check_tinfo(desk);
+ if (!_G.tinfo->conf)
+ return;
_add_stack();
@@ -1190,6 +1192,8 @@ _e_mod_action_remove_stack_cb(E_Object *obj __UNUSED__,
end_special_input();
check_tinfo(desk);
+ if (!_G.tinfo->conf || !_G.tinfo->conf->nb_stacks)
+ return;
_remove_stack();
@@ -1205,6 +1209,8 @@ _e_mod_action_tg_stack_cb(E_Object *obj __UNUSED__,
end_special_input();
check_tinfo(desk);
+ if (!_G.tinfo->conf || !_G.tinfo->conf->nb_stacks)
+ return;
_toggle_rows_cols();