Installer: improve BMessage allocation
Change-Id: I2da87c29c3e3720e67d22a8eede54eb5f32964ad Reviewed-on: https://review.haiku-os.org/c/haiku/+/3223 Reviewed-by: Rene Gollent <[email protected]>
This commit is contained in:
committed by
Adrien Destugues
parent
357b9d3cbb
commit
a99ae7f4a5
@@ -640,15 +640,12 @@ InstallerWindow::QuitRequested()
|
||||
|
||||
_QuitCopyEngine(false);
|
||||
|
||||
BMessage* quitWithInstallStatus = new BMessage(B_QUIT_REQUESTED);
|
||||
BMessage quitWithInstallStatus(B_QUIT_REQUESTED);
|
||||
quitWithInstallStatus.AddBool("install_complete",
|
||||
fInstallStatus == kFinished);
|
||||
|
||||
if (fInstallStatus == kFinished)
|
||||
quitWithInstallStatus->AddBool("install_complete", true);
|
||||
else
|
||||
quitWithInstallStatus->AddBool("install_compelte", false);
|
||||
|
||||
fWorkerThread->PostMessage(quitWithInstallStatus);
|
||||
be_app->PostMessage(quitWithInstallStatus);
|
||||
fWorkerThread->PostMessage(&quitWithInstallStatus);
|
||||
be_app->PostMessage(&quitWithInstallStatus);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user