As pointed out by korli use the PostMessage function that takes a code directly.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@40333 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Fredrik Holmqvist 2011-01-31 17:10:38 +00:00
parent 7fd711ef99
commit 5ceb49c12d

View File

@ -442,10 +442,8 @@ TBarView::ChangeState(int32 state, bool vertical, bool left, bool top)
// Send a message to the preferences window to let it know to enable
// or disabled preference items
if (stateChanged || vertSwap) {
BMessage message(kStateChanged);
be_app->PostMessage(&message);
}
if (stateChanged || vertSwap)
be_app->PostMessage(kStateChanged);
BRect screenFrame = (BScreen(Window())).Frame();