tiling: fix segv when adding a stack without config
This commit is contained in:
parent
6fbbc81264
commit
0636064d62
|
@ -1174,6 +1174,8 @@ _e_mod_action_add_stack_cb(E_Object *obj __UNUSED__,
|
||||||
end_special_input();
|
end_special_input();
|
||||||
|
|
||||||
check_tinfo(desk);
|
check_tinfo(desk);
|
||||||
|
if (!_G.tinfo->conf)
|
||||||
|
return;
|
||||||
|
|
||||||
_add_stack();
|
_add_stack();
|
||||||
|
|
||||||
|
@ -1189,6 +1191,8 @@ _e_mod_action_remove_stack_cb(E_Object *obj __UNUSED__,
|
||||||
end_special_input();
|
end_special_input();
|
||||||
|
|
||||||
check_tinfo(desk);
|
check_tinfo(desk);
|
||||||
|
if (!_G.tinfo->conf || !_G.tinfo->conf->nb_stacks)
|
||||||
|
return;
|
||||||
|
|
||||||
_remove_stack();
|
_remove_stack();
|
||||||
|
|
||||||
|
@ -1204,6 +1208,8 @@ _e_mod_action_tg_stack_cb(E_Object *obj __UNUSED__,
|
||||||
end_special_input();
|
end_special_input();
|
||||||
|
|
||||||
check_tinfo(desk);
|
check_tinfo(desk);
|
||||||
|
if (!_G.tinfo->conf || !_G.tinfo->conf->nb_stacks)
|
||||||
|
return;
|
||||||
|
|
||||||
_toggle_rows_cols();
|
_toggle_rows_cols();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue