Removed ShutdownWindow::Quit()
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1027 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -154,7 +154,6 @@ class ShutdownWindow : public BWindow
|
||||
~ShutdownWindow();
|
||||
void MessageReceived(BMessage *msg);
|
||||
bool QuitRequested();
|
||||
void Quit();
|
||||
private:
|
||||
SView *fView;
|
||||
thread_id fShutdownThread;
|
||||
@@ -274,17 +273,6 @@ ShutdownWindow::QuitRequested()
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
ShutdownWindow::Quit()
|
||||
{
|
||||
|
||||
// quit app on window close
|
||||
// be_app->PostMessage(B_QUIT_REQUESTED);
|
||||
|
||||
// call default Quit()
|
||||
BWindow::Quit();
|
||||
}
|
||||
|
||||
ShutdownApp::ShutdownApp(thread_id id)
|
||||
:BApplication("application/x-vnd.ShutDown-app")
|
||||
{
|
||||
@@ -382,9 +370,9 @@ int main(int argc, char **argv)
|
||||
|
||||
if (alert) {
|
||||
status_t err;
|
||||
be_app->LockLooper();
|
||||
// be_app->LockLooper();
|
||||
be_app->PostMessage(B_QUIT_REQUESTED);
|
||||
be_app->UnlockLooper();
|
||||
// be_app->UnlockLooper();
|
||||
|
||||
wait_for_thread(BApp_thread, &err);
|
||||
snooze(100000);
|
||||
|
||||
Reference in New Issue
Block a user