- Fixed Backgrounds Tracker add-on. I have no idea how some people seem to not

be able toreproduce it before.
- Don't try to access methods in a NULL object. :)
- This fixex bug #1128.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27153 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Bruno G. Albuquerque
2008-08-22 15:05:44 +00:00
parent 16cfc87748
commit a0e3096f6a
@@ -360,11 +360,12 @@ BackgroundsView::MessageReceived(BMessage *msg)
fImageMenu->FindItem(kMsgNoImage)->SetLabel("None");
fLastWorkspaceIndex = fWorkspaceMenu->IndexOf(
fWorkspaceMenu->FindMarked());
if (!fCurrent->IsDesktop()) {
if (fCurrent && fCurrent->IsDesktop()) {
UpdateButtons();
} else {
fPreview->SetDesktop(true);
LoadDesktopFolder();
} else
UpdateButtons();
}
break;
case kMsgDefaultFolder: