diff options
Diffstat (limited to 'include/vcl/customweld.hxx')
-rw-r--r-- | include/vcl/customweld.hxx | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/vcl/customweld.hxx b/include/vcl/customweld.hxx index b19b64bf980e..64f980732dfb 100644 --- a/include/vcl/customweld.hxx +++ b/include/vcl/customweld.hxx @@ -63,14 +63,7 @@ public: } virtual void Show() { m_pDrawingArea->show(); } virtual void Hide() { m_pDrawingArea->hide(); } - void GrabFocus() - { - bool bHadFocus = m_pDrawingArea->has_focus(); - m_pDrawingArea->grab_focus(); - // tdf#138078 only call GetFocus if we gained focus from an unfocused state - if (!bHadFocus && m_pDrawingArea->has_focus()) - GetFocus(); - } + void GrabFocus() { m_pDrawingArea->grab_focus(); } bool HasFocus() const { return m_pDrawingArea->has_focus(); } bool IsVisible() const { return m_pDrawingArea->get_visible(); } bool IsReallyVisible() const { return m_pDrawingArea->is_visible(); } |