Make the BWindows die in a proper way as suggested by mmu & stippi

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26183 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Ruiz Dorantes 2008-06-30 22:16:23 +00:00
parent 51ac4f530a
commit 5e53139393
2 changed files with 5 additions and 7 deletions

View File

@ -46,7 +46,7 @@ void ConnectionView::Pulse()
{
static int a = 0;
if (a++ == B_PULSES_BY_SECOND(5))
Window()->QuitRequested();
Window()->PostMessage(B_QUIT_REQUESTED);
}
@ -85,7 +85,7 @@ void ConnectionIncoming::MessageReceived(BMessage *message)
//---------------------------------------------------------------
bool ConnectionIncoming::QuitRequested()
{
Quit();
return BWindow::QuitRequested();
}

View File

@ -149,7 +149,7 @@ void PincodeWindow::MessageReceived(BMessage *msg)
// TODO: something failed here
}
QuitRequested();
PostMessage(B_QUIT_REQUESTED);
}
break;
@ -179,7 +179,7 @@ void PincodeWindow::MessageReceived(BMessage *msg)
// TODO: something failed here
}
QuitRequested();
PostMessage(B_QUIT_REQUESTED);
}
break;
@ -193,9 +193,7 @@ void PincodeWindow::MessageReceived(BMessage *msg)
bool PincodeWindow::QuitRequested()
{
Lock();
Quit();
return (true);
return BWindow::QuitRequested();
};
}