summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/source/window/window.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index 2a3fa4199603..10d1a4385622 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -1822,7 +1822,10 @@ void Window::LoseFocus()
void Window::SetHelpHdl(const Link<vcl::Window&, bool>& rLink)
{
- mpWindowImpl->maHelpRequestHdl = rLink;
+ if (mpWindowImpl) // may be called after dispose
+ {
+ mpWindowImpl->maHelpRequestHdl = rLink;
+ }
}
void Window::RequestHelp( const HelpEvent& rHEvt )