From ecedf9720a226f8afc317f092ce696879fdeeb5e Mon Sep 17 00:00:00 2001 From: corvid Date: Sun, 14 Oct 2012 21:19:10 +0000 Subject: preserve location text when changing panel --- src/ui.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/ui.cc') diff --git a/src/ui.cc b/src/ui.cc index 647248aa..5755cf98 100644 --- a/src/ui.cc +++ b/src/ui.cc @@ -960,6 +960,8 @@ void UI::customize(int flags) */ void UI::change_panel(int new_size, int small_icons) { + char *loc_text = dStrdup(Location->value()); + // Remove current panel's bars init_sizes(); TopGroup->remove(LocBar); @@ -978,7 +980,10 @@ void UI::change_panel(int new_size, int small_icons) a_UIcmd_set_buttons_sens(a_UIcmd_get_bw_by_widget(this)); TopGroup->rearrange(); + Location->value(loc_text); Location->take_focus(); + + dFree(loc_text); } /* -- cgit v1.2.3