summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/vcl/weld.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx
index fa2ba7bcd03a..da5650395579 100644
--- a/include/vcl/weld.hxx
+++ b/include/vcl/weld.hxx
@@ -98,13 +98,13 @@ public:
virtual void connect_focus_in(const Link<Widget&, void>& rLink)
{
- assert(!m_aFocusInHdl.IsSet());
+ assert(!m_aFocusInHdl.IsSet() || !rLink.IsSet());
m_aFocusInHdl = rLink;
}
virtual void connect_focus_out(const Link<Widget&, void>& rLink)
{
- assert(!m_aFocusOutHdl.IsSet());
+ assert(!m_aFocusOutHdl.IsSet() || !rLink.IsSet());
m_aFocusOutHdl = rLink;
}