aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2012-11-08 23:26:17 +0100
committerSebastian Geerken <devnull@localhost>2012-11-08 23:26:17 +0100
commit816b76f3cefc347cf9d0f900e31d82946127d7a2 (patch)
treef4adbab90029033594f4fb4cee6861a127b32b50
parent65a0356373f15d6a65e9f14f55afcbdaadd133e1 (diff)
parente771ffa187fad28f815a973288f462adf0509797 (diff)
Merge. (Wrong order ...)
-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();
}