diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-06-13 14:25:13 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-06-13 14:25:13 -0400 |
commit | eb255c05473929b8169d5c1796133e98586bc0b8 (patch) | |
tree | ffb2acc315d81775de0ba099a9e57c530f850ac2 /src | |
parent | a5a63534056e48aaff31b25e91102ce06e63a47e (diff) |
Redraw current page when tabs = 2 and the new one doesn't take focus
Diffstat (limited to 'src')
-rw-r--r-- | src/uicmd.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc index 577e2a17..10b90a50 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -210,8 +210,12 @@ UI *CustTabs::add_new_tab(UI *old_ui, int focus) add(btn); btn->callback(tab_btn_cb, this); - if (focus) + if (focus) { switch_tab(btn); + } else if (num_tabs() == 2) { + // no focus and tabbar added: redraw current page + Wizard->redraw(); + } if (num_tabs() == 1) btn->hide(); rearrange(); |