Backgrounds Preflet : Fix the build

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@32432 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Philippe Saint-Pierre
2009-08-16 01:13:24 +00:00
parent fcafc3a5bb
commit 34e1987b61
+4 -2
View File
@@ -53,8 +53,10 @@ BackgroundsApplication::BackgroundsApplication()
void
BackgroundsApplication::RefsReceived(BMessage* message)
{
if (CountWindows() > 0)
BMessenger(WindowAt(0)->ChildAt(0)).SendMessage(message);
if (CountWindows() > 0) {
BWindow* window = WindowAt(0);
BMessenger(window->ChildAt(0)).SendMessage(message);
}
}