summaryrefslogtreecommitdiff
path: root/reportdesign
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-03-08 17:18:06 +0000
committerCaolán McNamara <caolanm@redhat.com>2021-03-09 10:08:45 +0100
commit862fd2fa19b64972247bde9b171ec828a30e1676 (patch)
tree9520a81e54e69864b427d7367fa790e9e6c3543e /reportdesign
parent2befe5c56c29fec45c898c00773e906d2d2d9f19 (diff)
defer getting toplevel for color picker until we need it
Change-Id: I60f4ded47f7d80b397647ea3344e83a5dfd1b11e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112183 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'reportdesign')
-rw-r--r--reportdesign/source/ui/dlg/Condition.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/dlg/Condition.cxx b/reportdesign/source/ui/dlg/Condition.cxx
index 1b51d1998ac5..c4a05704c177 100644
--- a/reportdesign/source/ui/dlg/Condition.cxx
+++ b/reportdesign/source/ui/dlg/Condition.cxx
@@ -157,8 +157,8 @@ void Condition::SetBackgroundDropdownClick()
m_aColorStatus,
SID_BACKGROUND_COLOR,
nullptr,
- m_pDialog,
MenuOrToolMenuButton(m_xActions.get(), "background"),
+ [this]{ return m_pDialog; },
m_aBackColorWrapper));
m_xActions->set_item_popover("background", m_xBackColorFloat->getTopLevel());
@@ -172,8 +172,8 @@ void Condition::SetForegroundDropdownClick()
m_aColorStatus,
SID_ATTR_CHAR_COLOR2,
nullptr,
- m_pDialog,
MenuOrToolMenuButton(m_xActions.get(), "foreground"),
+ [this]{ return m_pDialog; },
m_aForeColorWrapper));
m_xActions->set_item_popover("foreground", m_xForeColorFloat->getTopLevel());