Mercurial > dillo_port1.3
changeset 2090:4341dedfede7
Redraw current page when tabs = 2 and the new one doesn't take focus
author | Jorge Arellano Cid <jcid@dillo.org> |
---|---|
date | Mo, 13 Jun 2011 14:25:13 -0400 |
parents | 8c0772fac825 |
children | 9acbda95436f ab594893c6f9 |
files | src/uicmd.cc |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/uicmd.cc Mo Jun 13 14:14:14 2011 -0400 +++ b/src/uicmd.cc Mo Jun 13 14:25:13 2011 -0400 @@ -210,8 +210,12 @@ 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();