Resolve TODO.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42066 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -51,9 +51,8 @@ GraphicalUserInterface::Terminate()
|
|||||||
{
|
{
|
||||||
// quit window
|
// quit window
|
||||||
if (fTeamWindow != NULL) {
|
if (fTeamWindow != NULL) {
|
||||||
// TODO: This is not clean. If the window has been deleted we shouldn't
|
BMessenger messenger(fTeamWindow);
|
||||||
// try to access it!
|
if (messenger.IsValid() && messenger.LockTarget())
|
||||||
if (fTeamWindow->Lock())
|
|
||||||
fTeamWindow->Quit();
|
fTeamWindow->Quit();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user