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