Hack to make Command-Q save preferences and not only Command-W.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34051 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jonas Sundström 2009-11-15 02:50:16 +00:00
parent e2fe56d7d4
commit 31f52d335f
2 changed files with 8 additions and 0 deletions

View File

@ -190,6 +190,12 @@ LocalePreflet::AboutRequested()
bool
LocalePreflet::QuitRequested()
{
if (fLocaleWindow != NULL) {
fLocaleWindow->PostMessage(B_QUIT_REQUESTED);
fLocaleWindow = NULL;
return false;
}
return true;
}

View File

@ -468,6 +468,8 @@ LocaleWindow::QuitRequested()
be_app_messenger.SendMessage(&update);
be_app_messenger.SendMessage(B_QUIT_REQUESTED);
be_app_messenger.SendMessage(B_QUIT_REQUESTED);
// app eats the first message
return true;
}