diff options
Diffstat (limited to 'uui/source/iahndl.cxx')
-rw-r--r-- | uui/source/iahndl.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/uui/source/iahndl.cxx b/uui/source/iahndl.cxx index 59f62217c6ac..b45b9cea2c2d 100644 --- a/uui/source/iahndl.cxx +++ b/uui/source/iahndl.cxx @@ -1120,7 +1120,10 @@ UUIInteractionHelper::handleGenericErrorRequest( executeMessageBox(getParentProperty(), aTitle, aErrorString, MessBoxStyle::Ok); } else - ErrorHandler::HandleError(nErrorCode, getParentProperty()); + { + vcl::Window* pParent = getParentProperty(); + ErrorHandler::HandleError(nErrorCode, pParent ? pParent->GetFrameWeld() : nullptr); + } if (xApprove.is() && bWarning) xApprove->select(); |