summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-07-12 16:59:46 +0100
committerCaolán McNamara <caolanm@redhat.com>2020-07-12 20:00:44 +0200
commit466e63ed692974c1b7529f22574538178e8928af (patch)
tree104db01fa933fba6547650ed459f1432d4206718 /vcl
parent66977fbfa23a6d48c64d72d44264de90abddad53 (diff)
m_pEntry may be null
Change-Id: I704ff31906437f0d998f3089cf1df43d29187e0d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98604 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/unx/gtk3/gtk3gtkinst.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/gtk3/gtk3gtkinst.cxx b/vcl/unx/gtk3/gtk3gtkinst.cxx
index 3a81302d515d..348cea8618e7 100644
--- a/vcl/unx/gtk3/gtk3gtkinst.cxx
+++ b/vcl/unx/gtk3/gtk3gtkinst.cxx
@@ -14549,7 +14549,9 @@ public:
virtual bool has_focus() const override
{
- return gtk_widget_has_focus(m_pToggleButton) || gtk_widget_has_focus(m_pEntry) ||
+ if (m_pEntry && gtk_widget_has_focus(m_pEntry))
+ return true;
+ return gtk_widget_has_focus(m_pToggleButton) ||
gtk_widget_has_focus(GTK_WIDGET(m_pOverlayButton)) ||
gtk_widget_has_focus(GTK_WIDGET(m_pTreeView)) || GtkInstanceWidget::has_focus();
}