1
0
Fork 0

PUI Compat: handle failed loads without crash

This commit is contained in:
James Turner 2022-11-06 11:42:51 +00:00
parent c6ed57d04b
commit 6bb22caea2

View file

@ -108,8 +108,10 @@ FGPUICompatDialog::FGPUICompatDialog(SGPropertyNode* props) : FGDialog(props),
FGPUICompatDialog::~FGPUICompatDialog()
{
_peer->callMethod<void>("doClose");
if (_peer) {
_peer->callMethod<void>("doClose");
}
_props->setIntValue("lastx", getX());
_props->setIntValue("lasty", getY());
// FIXME: save width/height as well?