* 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:
parent
8f06357d66
commit
369ad66d92
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue