summaryrefslogtreecommitdiff
path: root/vcl/source
diff options
context:
space:
mode:
authorTelesto <telesto@surfxs.nl>2018-02-16 13:44:38 +0200
committerCaolán McNamara <caolanm@redhat.com>2018-02-21 21:34:01 +0100
commitfcbcbe607ba3c693c79b1e1c390fab3b4643e3d9 (patch)
tree2c0970b4a3ff2914de5b22b7d09a0fe0cf51c0aa /vcl/source
parent055aae14063773bdac9ea43b3207f1d7d6ca6b4c (diff)
tdf#115315 Cursor not in focus with new document
Partial revert of 7aae8772aa18744cb1bbd8348272be99cc882c47 ("Clear VclPtr instance reference on removed UserEvents.") Disposing of child controls should not affect focus events of the parent frame. Change-Id: I583311050560a2851cfcc372741b675b52375d06 Reviewed-on: https://gerrit.libreoffice.org/49855 Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com> Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com> (cherry picked from commit 11fab5aeaaa72012c63b2c812656a932ef0debf9) Reviewed-on: https://gerrit.libreoffice.org/49869 Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source')
-rw-r--r--vcl/source/window/window.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/window.cxx b/vcl/source/window/window.cxx
index a3310a5b4976..4a6cab270591 100644
--- a/vcl/source/window/window.cxx
+++ b/vcl/source/window/window.cxx
@@ -486,7 +486,7 @@ void Window::dispose()
if ( pSVData->maWinData.mpLastDeacWin == this )
pSVData->maWinData.mpLastDeacWin = nullptr;
- if ( mpWindowImpl->mpFrameData )
+ if ( mpWindowImpl->mbFrame && mpWindowImpl->mpFrameData )
{
if ( mpWindowImpl->mpFrameData->mnFocusId )
Application::RemoveUserEvent( mpWindowImpl->mpFrameData->mnFocusId );