Always build the button bar. Fixes #9474.
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user