* Lock the window when saving windows states in Tracker::QuitRequested.

This was the cause of #2571 and duplicate #2888 although the bug wasn't 
 triggered anymore since r28205.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28274 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Alexandre Deckner 2008-10-21 23:00:13 +00:00
parent 8f06357d66
commit 369ad66d92
1 changed files with 3 additions and 1 deletions

View File

@ -258,7 +258,8 @@ TTracker::QuitRequested()
BContainerWindow *window = dynamic_cast<BContainerWindow *>
(fWindowList.ItemAt(i));
if (window && window->TargetModel() && !window->PoseView()->IsDesktopWindow()) {
if (window && window->Lock() && window->TargetModel()
&& !window->PoseView()->IsDesktopWindow()) {
if (window->TargetModel()->IsRoot())
message.AddBool("open_disks_window", true);
else {
@ -294,6 +295,7 @@ TTracker::QuitRequested()
message.AddInt8(path.Path(), flags);
}
}
window->Unlock();
}
}
lock.Unlock();