diff options
author | corvid <corvid@lavabit.com> | 2012-10-14 21:19:10 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2012-10-14 21:19:10 +0000 |
commit | ecedf9720a226f8afc317f092ce696879fdeeb5e (patch) | |
tree | 3b502329439456ad8e51495e47ee64e35fac3924 /src/ui.cc | |
parent | 2e4e6bb243644489cd594718ea13380cdc277a55 (diff) |
preserve location text when changing panel
Diffstat (limited to 'src/ui.cc')
-rw-r--r-- | src/ui.cc | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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); } /* |