Kaydet (Commit) d02381a7 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#123694 we need the controller, not the tabpage parent

Change-Id: Ib390abaec648a1e06fcc35f83cb170fc654cf021
Reviewed-on: https://gerrit.libreoffice.org/69203
Tested-by: Jenkins
Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst b37b299d
...@@ -41,8 +41,9 @@ namespace ...@@ -41,8 +41,9 @@ namespace
{ {
void lcl_enableRangeChoosing(bool bEnable, TabPageParent pParent) void lcl_enableRangeChoosing(bool bEnable, TabPageParent pParent)
{ {
if (weld::Window* pWeldDialog = dynamic_cast<weld::Window*>(pParent.pPage)) if (weld::DialogController* pController = pParent.pController)
{ {
weld::Window* pWeldDialog = pController->getDialog();
pWeldDialog->set_modal(!bEnable); pWeldDialog->set_modal(!bEnable);
pWeldDialog->show(!bEnable); pWeldDialog->show(!bEnable);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment