aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-11-08 23:28:26 +0100
committerSebastian Geerken <devnull@localhost>2012-11-08 23:28:26 +0100
commit5e000618f0774aa24605ab984c46411e745a1574 (patch)
tree33bd6e87dc8f002a8d78b63f8e8fc1e06bf9c40a /src
parent9c77c6d76e25394517d371e070d13b54ab7858d8 (diff)
parent816b76f3cefc347cf9d0f900e31d82946127d7a2 (diff)
Merge.
Diffstat (limited to 'src')
-rw-r--r--src/uicmd.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/uicmd.cc b/src/uicmd.cc
index bf4bbe2f..40279a60 100644
--- a/src/uicmd.cc
+++ b/src/uicmd.cc
@@ -84,7 +84,7 @@ class CustTabButton : public Fl_Button {
// active one (the highest numbered gets focus).
public:
CustTabButton (int x,int y,int w,int h, const char* label = 0) :
- Fl_Button (x,y,w,h,label) { ui_ = NULL; };
+ Fl_Button (x,y,w,h,label) { ui_ = NULL; focus_num_ = 0; };
void ui(UI *pui) { ui_ = pui; }
UI *ui(void) { return ui_; }
void focus_num(uint_t fn) { focus_num_ = fn; }
@@ -290,8 +290,6 @@ UI *CustTabs::add_new_tab(UI *old_ui, int focus)
if (focus) {
switch_tab(btn);
} else if (num_tabs() == 2) {
- increase_focus_counter();
- btn->focus_num(focus_counter);
// no focus and tabbar added: redraw current page
Wizard->redraw();
}