summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2015-04-29 17:20:21 +0100
committerMichael Meeks <michael.meeks@collabora.com>2015-04-29 20:52:21 +0100
commit3801e50670afaf245e855e450817be8157deca08 (patch)
tree9fa391b976ba5179726a2ff0be2ea895db970075 /vcl
parentd4a12421f2b0aafe97f8ab78017261969c36ae0e (diff)
Protect against event emission during dispose.
Change-Id: I8c97fdb637a8ea4d50bef5815ef3716a4be03688
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/tabctrl.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx
index 72c1357ef267..21e6487f2b16 100644
--- a/vcl/source/control/tabctrl.cxx
+++ b/vcl/source/control/tabctrl.cxx
@@ -1357,7 +1357,7 @@ void TabControl::GetFocus()
void TabControl::LoseFocus()
{
- if( ! mpTabCtrlData->mpListBox )
+ if( mpTabCtrlData && ! mpTabCtrlData->mpListBox )
HideFocus();
Control::LoseFocus();
}