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);
|
_QuitCopyEngine(false);
|
||||||
|
|
||||||
BMessage* quitWithInstallStatus = new BMessage(B_QUIT_REQUESTED);
|
BMessage quitWithInstallStatus(B_QUIT_REQUESTED);
|
||||||
|
quitWithInstallStatus.AddBool("install_complete",
|
||||||
|
fInstallStatus == kFinished);
|
||||||
|
|
||||||
if (fInstallStatus == kFinished)
|
fWorkerThread->PostMessage(&quitWithInstallStatus);
|
||||||
quitWithInstallStatus->AddBool("install_complete", true);
|
be_app->PostMessage(&quitWithInstallStatus);
|
||||||
else
|
|
||||||
quitWithInstallStatus->AddBool("install_compelte", false);
|
|
||||||
|
|
||||||
fWorkerThread->PostMessage(quitWithInstallStatus);
|
|
||||||
be_app->PostMessage(quitWithInstallStatus);
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user