From 878cdfa311095dd0aae29346dc183c55f852d8bb Mon Sep 17 00:00:00 2001
From: Mooffie <mooffie@gmail.com>
Date: Thu, 24 Mar 2016 14:52:14 +0200
Subject: [PATCH] Fix for "Fix menu handling".
---
lib/widget/dialog.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/lib/widget/dialog.c b/lib/widget/dialog.c
index 5855750..8fa00fc 100644
a
|
b
|
dlg_set_top_or_bottom_widget (void *w, gboolean set_top) |
1101 | 1101 | abort (); /* widget is not in dialog, this should not happen */ |
1102 | 1102 | |
1103 | 1103 | /* unfocus prevoius widget and focus current one before widget reordering */ |
1104 | | if (h->state == DLG_ACTIVE) |
| 1104 | if (set_top && h->state == DLG_ACTIVE) |
1105 | 1105 | do_select_widget (h, l, SELECT_EXACT); |
1106 | 1106 | |
1107 | 1107 | /* widget reordering */ |
… |
… |
dlg_set_top_or_bottom_widget (void *w, gboolean set_top) |
1110 | 1110 | h->widgets = g_list_concat (h->widgets, l); |
1111 | 1111 | else |
1112 | 1112 | h->widgets = g_list_concat (l, h->widgets); |
1113 | | h->current = l; |
1114 | 1113 | } |
1115 | 1114 | |
1116 | 1115 | /* --------------------------------------------------------------------------------------------- */ |
… |
… |
dlg_set_top_widget (void *w) |
1126 | 1125 | |
1127 | 1126 | /* --------------------------------------------------------------------------------------------- */ |
1128 | 1127 | /** |
1129 | | * Set widget at bottom of widget list (and make it current, albeit |
1130 | | * typically you'd want to switch to some other widget right after). |
| 1128 | * Set widget at bottom of widget list. |
1131 | 1129 | */ |
1132 | 1130 | |
1133 | 1131 | void |