aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJorge Arellano Cid <jcid@dillo.org>2011-06-13 14:25:13 -0400
committerJorge Arellano Cid <jcid@dillo.org>2011-06-13 14:25:13 -0400
commiteb255c05473929b8169d5c1796133e98586bc0b8 (patch)
treeffb2acc315d81775de0ba099a9e57c530f850ac2 /src
parenta5a63534056e48aaff31b25e91102ce06e63a47e (diff)
Redraw current page when tabs = 2 and the new one doesn't take focus
Diffstat (limited to 'src')
-rw-r--r--src/uicmd.cc6
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();