mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Merge branch '4323-info_segfault'
* 4323-info_segfault: Ticket #4323: fix segfault on change panel mode.
This commit is contained in:
commit
f7c52474fb
@ -573,7 +573,8 @@ widget_replace (Widget * old_w, Widget * new_w)
|
||||
{
|
||||
GList *l;
|
||||
|
||||
for (l = group_get_widget_next_of (holder); widget_is_focusable (WIDGET (l->data));
|
||||
for (l = group_get_widget_next_of (holder);
|
||||
!widget_is_focusable (WIDGET (l->data)) && l != holder;
|
||||
l = group_get_widget_next_of (l))
|
||||
;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user