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();
|
~ShutdownWindow();
|
||||||
void MessageReceived(BMessage *msg);
|
void MessageReceived(BMessage *msg);
|
||||||
bool QuitRequested();
|
bool QuitRequested();
|
||||||
void Quit();
|
|
||||||
private:
|
private:
|
||||||
SView *fView;
|
SView *fView;
|
||||||
thread_id fShutdownThread;
|
thread_id fShutdownThread;
|
||||||
@@ -274,17 +273,6 @@ ShutdownWindow::QuitRequested()
|
|||||||
return true;
|
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)
|
ShutdownApp::ShutdownApp(thread_id id)
|
||||||
:BApplication("application/x-vnd.ShutDown-app")
|
:BApplication("application/x-vnd.ShutDown-app")
|
||||||
{
|
{
|
||||||
@@ -382,9 +370,9 @@ int main(int argc, char **argv)
|
|||||||
|
|
||||||
if (alert) {
|
if (alert) {
|
||||||
status_t err;
|
status_t err;
|
||||||
be_app->LockLooper();
|
// be_app->LockLooper();
|
||||||
be_app->PostMessage(B_QUIT_REQUESTED);
|
be_app->PostMessage(B_QUIT_REQUESTED);
|
||||||
be_app->UnlockLooper();
|
// be_app->UnlockLooper();
|
||||||
|
|
||||||
wait_for_thread(BApp_thread, &err);
|
wait_for_thread(BApp_thread, &err);
|
||||||
snooze(100000);
|
snooze(100000);
|
||||||
|
|||||||
Reference in New Issue
Block a user