Revert "BPrintJob: fixed crash."
This reverts commit 1805bbf29bceca563985ff377f2b153c46057c2b.
This commit is contained in:
parent
d7a9cbde91
commit
8f3d6d192f
@ -747,22 +747,12 @@ PrintServerMessenger::~PrintServerMessenger()
|
||||
void
|
||||
PrintServerMessenger::RejectUserInput()
|
||||
{
|
||||
// TODO: This code is sort of a hack:
|
||||
// It creates a BAlert then moves it out of the screen to
|
||||
// block user input.
|
||||
fHiddenApplicationModalWindow = new BAlert("bogus", "app_modal", "OK");
|
||||
BButton* defaultButton = fHiddenApplicationModalWindow->DefaultButton();
|
||||
if (defaultButton != NULL) {
|
||||
// TODO: Doing this is useless, since BAlert now sets its
|
||||
// default button on Go().
|
||||
defaultButton->SetEnabled(false);
|
||||
fHiddenApplicationModalWindow->SetDefaultButton(NULL);
|
||||
}
|
||||
fHiddenApplicationModalWindow->DefaultButton()->SetEnabled(false);
|
||||
fHiddenApplicationModalWindow->SetDefaultButton(NULL);
|
||||
fHiddenApplicationModalWindow->SetFlags(fHiddenApplicationModalWindow->Flags() | B_CLOSE_ON_ESCAPE);
|
||||
fHiddenApplicationModalWindow->Go(NULL);
|
||||
|
||||
// Moved here because now BAlert centers itself on screen in Go().
|
||||
fHiddenApplicationModalWindow->MoveTo(-65000, -65000);
|
||||
fHiddenApplicationModalWindow->Go(NULL);
|
||||
}
|
||||
|
||||
|
||||
@ -877,6 +867,7 @@ PrintServerMessenger::MessengerThread(void* data)
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
BMessage reply;
|
||||
if (printServer.SendMessage(request, &reply) != B_OK
|
||||
|| reply.what != 'okok' ) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user