From eaedb2f8a47036540c14494bc4cb8a02218fd12b Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Sat, 29 Jun 2013 14:35:04 -0400 Subject: [PATCH] Fix regression introduced in 16e486e. Explicitly select the first tab if the caller hasn't done so by the time we're attached to the window. --- src/kits/interface/TabView.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/kits/interface/TabView.cpp b/src/kits/interface/TabView.cpp index d7a08f349b..157b4531dc 100644 --- a/src/kits/interface/TabView.cpp +++ b/src/kits/interface/TabView.cpp @@ -569,7 +569,8 @@ BTabView::AttachedToWindow() { BView::AttachedToWindow(); - Select(fSelection); + if (fSelection < 0) + Select(0); }