clean the background for all workspaces when no image is selected

this fixes bug #1602


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22848 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2007-11-06 23:35:07 +00:00
parent f88e00f507
commit 0aded81728
@@ -607,13 +607,15 @@ BackgroundsView::Save()
fCurrentInfo = NULL; fCurrentInfo = NULL;
} }
} }
} else if (fLastImageIndex > -1) { } else {
fCurrent->RemoveAll(); fCurrent->RemoveAll();
fCurrentInfo = new BackgroundImage::BackgroundImageInfo( if (fLastImageIndex > -1) {
B_ALL_WORKSPACES, fLastImageIndex, mode, offset, fCurrentInfo = new BackgroundImage::BackgroundImageInfo(
textWidgetLabelOutline, fCurrent->GetShowingImageSet(), B_ALL_WORKSPACES, fLastImageIndex, mode, offset,
fCurrentInfo->fCacheMode); textWidgetLabelOutline, fCurrent->GetShowingImageSet(),
fCurrent->Add(fCurrentInfo); fCurrentInfo->fCacheMode);
fCurrent->Add(fCurrentInfo);
}
} }
} else if (fLastImageIndex > -1) { } else if (fLastImageIndex > -1) {
if (fWorkspaceMenu->FindItem(kMsgCurrentWorkspace)->IsMarked()) { if (fWorkspaceMenu->FindItem(kMsgCurrentWorkspace)->IsMarked()) {