diff options
author | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-17 10:51:45 +0000 |
---|---|---|
committer | woglinde <woglinde@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2011-01-17 10:51:45 +0000 |
commit | 392c0189773e604e0b913fbfcc60053a0b7b37de (patch) | |
tree | d41422810859e9c72a9515961ba16e8d9ff5be49 /navit/gui | |
parent | c9dad90f74a105b8763de8a4a86b0be4ec3f4f0a (diff) | |
download | navit-svn-392c0189773e604e0b913fbfcc60053a0b7b37de.tar.gz |
Fix:gui_internal:applied patch from #742 main menu button does not work in bookmarks, thanks to noradtux
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@3925 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/gui')
-rw-r--r-- | navit/gui/internal/gui_internal.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/navit/gui/internal/gui_internal.c b/navit/gui/internal/gui_internal.c index 154beba2..13e5d3b4 100644 --- a/navit/gui/internal/gui_internal.c +++ b/navit/gui/internal/gui_internal.c @@ -1504,9 +1504,10 @@ gui_internal_prune_menu_count(struct gui_priv *this, int count, int render) struct widget *w=NULL; while (l && count-- > 0) l=g_list_previous(l); - if (l) + if (l) { w=l->data; - gui_internal_prune_menu_do(this, w, render); + gui_internal_prune_menu_do(this, w, render); + } } static void |