summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-05-28 10:05:58 +0200
committerDavid Tardon <dtardon@redhat.com>2015-05-28 10:06:45 +0200
commita14d7e3b41e1083edcebdeb3484e3cc6666dd63c (patch)
tree8d2da93251ed9b147c8340549b7a71bee2a47c92
parent39f3039724f3933963f861f4afc24a92348eb991 (diff)
tdf#91671 avoid use of already disposed control
Change-Id: I9cf5feeb2fc0ea91c7684aaf8adc2809907fa5d7
-rw-r--r--extensions/source/propctrlr/propertyeditor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/source/propctrlr/propertyeditor.cxx b/extensions/source/propctrlr/propertyeditor.cxx
index 73d8389a6b9d..60f72f4c980a 100644
--- a/extensions/source/propctrlr/propertyeditor.cxx
+++ b/extensions/source/propctrlr/propertyeditor.cxx
@@ -166,7 +166,8 @@ namespace pcr
void OPropertyEditor::GetFocus()
{
- m_aTabControl->GrabFocus();
+ if ( m_aTabControl )
+ m_aTabControl->GrabFocus();
}