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:
parent
51ac4f530a
commit
5e53139393
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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();
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user