Always build the button bar. Fixes #9474.

This commit is contained in:
Rene Gollent
2013-03-09 19:01:47 -05:00
parent 2e03f27e26
commit acd512e9c6
+3 -3
View File
@@ -470,20 +470,20 @@ TMailWindow::TMailWindow(BRect rect, const char* title, TMailApp* app,
// Button Bar // Button Bar
BuildButtonBar();
float bbwidth = 0, bbheight = 0; float bbwidth = 0, bbheight = 0;
bool showButtonBar = fApp->ShowButtonBar(); bool showButtonBar = fApp->ShowButtonBar();
if (showButtonBar) { if (showButtonBar) {
BuildButtonBar();
fButtonBar->ShowLabels(showButtonBar); fButtonBar->ShowLabels(showButtonBar);
fButtonBar->Arrange(true); fButtonBar->Arrange(true);
fButtonBar->GetPreferredSize(&bbwidth, &bbheight); fButtonBar->GetPreferredSize(&bbwidth, &bbheight);
fButtonBar->ResizeTo(Bounds().right, bbheight); fButtonBar->ResizeTo(Bounds().right, bbheight);
fButtonBar->MoveTo(0, height); fButtonBar->MoveTo(0, height);
fButtonBar->Show(); fButtonBar->Show();
} else }
fButtonBar = NULL;
r.top = r.bottom = height + bbheight + 1; r.top = r.bottom = height + bbheight + 1;
fHeaderView = new THeaderView (r, rect, fIncoming, resending, fHeaderView = new THeaderView (r, rect, fIncoming, resending,