[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Apr 6 15:24:33 UTC 2021
sc/source/ui/docshell/docsh6.cxx | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
New commits:
commit 26a546c32576126dcfb14ca017eecebb90a941bf
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Apr 6 10:26:31 2021 +0100
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Apr 6 17:23:51 2021 +0200
skip intermediate vcl::Window
Change-Id: Iabf0e476d1f4be422e71feefb98145d57abc908d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113654
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/docshell/docsh6.cxx b/sc/source/ui/docshell/docsh6.cxx
index ac313715160d..fa12ebd6ac4c 100644
--- a/sc/source/ui/docshell/docsh6.cxx
+++ b/sc/source/ui/docshell/docsh6.cxx
@@ -499,8 +499,7 @@ void ScDocShell::CheckConfigOptions()
ScTabViewShell* pViewShell = GetBestViewShell();
if (pViewShell)
{
- vcl::Window* pParent = pViewShell->GetFrameWin();
- std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pParent ? pParent->GetFrameWeld() : nullptr,
+ std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pViewShell->GetFrameWeld(),
VclMessageType::Info, VclButtonsType::Ok,
ScResId(STR_OPTIONS_WARN_SEPARATORS)));
xInfoBox->run();
More information about the Libreoffice-commits
mailing list