[haiku-development] Has the shutdown process changed recently?

  • From: "Humdinger" <dmarc-noreply@xxxxxxxxxxxxx> ("humdingerb")
  • To: Development Haiku ML <haiku-development@xxxxxxxxxxxxx>
  • Date: Tue, 01 Nov 2022 10:23:01 +0100

Hi there!

I just noticed that Clipdinger [1] doesn't save its clip history when shutting 
down Haiku. It does work when 
'manually' quitting the app with ALT+Q. I'm quite sure it used to work on 
shutdown, too...
Has the shutdown process changed recently?

The _SaveHistory() is done in MainWindow::QuitRequested() (I tried moving it to 
MainWindow::~MainWindow(), but 
that didn't change anything)
MainWindow is created in the BApplication's App::ReadyToRun()

How does the shutdown process work for an application?
* BApplication's QuitRequested() is called
* which calls all created BLoopers' QuitRequested() (also my 
MainWindow::QuitRequested())
* when those QuitRequested() return "true", their destructor is called (if 
"false" the quitting stops(?))

Did I get that right?

Regards,
Humdinger

[1] https://github.com/humdingerb/clipdinger
--
Help translating 3rd party Haiku applications
Go to Polyglot at https://i18n.kacperkasper.pl

Other related posts: