HasBorder and HasTitle are exclusive, fix bug #2325

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@25770 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2008-06-02 20:53:46 +00:00
parent 15c0cece2b
commit 62572b22a6

View File

@ -554,8 +554,10 @@ WorkspacesWindow::MessageReceived(BMessage *message)
if (enable)
SetLook(B_TITLED_WINDOW_LOOK);
else
else {
SetLook(B_NO_BORDER_WINDOW_LOOK);
fSettings->SetHasTitle(true);
}
fSettings->SetHasBorder(enable);
break;
@ -569,8 +571,10 @@ WorkspacesWindow::MessageReceived(BMessage *message)
if (enable)
SetLook(B_TITLED_WINDOW_LOOK);
else
else {
SetLook(B_MODAL_WINDOW_LOOK);
fSettings->SetHasBorder(true);
}
fSettings->SetHasTitle(enable);
break;