[haiku-bugs] Re: [Haiku] #12271: Printing crashes application in BPrivate::PrintServerMessenger::RejectUserInput()

  • From: "jackburton" <trac@xxxxxxxxxxxx>
  • Date: Sat, 29 Aug 2015 12:53:03 -0000

#12271: Printing crashes application in
BPrivate::PrintServerMessenger::RejectUserInput()
----------------------+----------------------------
Reporter: diver | Owner: nobody
Type: bug | Status: new
Priority: normal | Milestone: Unscheduled
Component: Kits | Version: R1/Development
Resolution: | Keywords:
Blocked By: | Blocking:
Has a Patch: 0 | Platform: All
----------------------+----------------------------

Comment (by jackburton):

Adding the following code:

{{{
if (CountButtons() > 0)
SetDefaultButton(ButtonAt(CountButtons() - 1));
}}}
to the end of BAlert::_Init() fixes the crash. Although now we have a nice
BAlert shown on the screen.
I admit the code in there is sort of a hack, since it creates a BAlert and
moves it out of the screen to hide it and block user input.

--
Ticket URL: <https://dev.haiku-os.org/ticket/12271#comment:7>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: