[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Fri Mar 12 09:06:33 UTC 2021
sc/source/ui/docshell/arealink.cxx | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 14d1f276b488b0a7cad107e3fb9612d96d4e764d
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Mar 11 11:56:54 2021 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Mar 12 10:05:37 2021 +0100
use the DocShell GetDialogParent as explicit dialog parent
Change-Id: I4b7c09ea7f6d387d220e35430299ffdaa73e7718
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112338
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/ui/docshell/arealink.cxx b/sc/source/ui/docshell/arealink.cxx
index 791c2a3b4085..9acacb21a810 100644
--- a/sc/source/ui/docshell/arealink.cxx
+++ b/sc/source/ui/docshell/arealink.cxx
@@ -463,8 +463,8 @@ bool ScAreaLink::Refresh( const OUString& rNewFile, const OUString& rNewFilter,
//! Link dialog must set default parent
// "cannot insert rows"
- vcl::Window* pWin = Application::GetDefDialogParent();
- std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr,
+ weld::Window* pWin = Application::GetFrameWeld(m_pDocSh->GetDialogParent());
+ std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pWin,
VclMessageType::Info, VclButtonsType::Ok,
ScResId(STR_MSSG_DOSUBTOTALS_2)));
xInfoBox->run();
More information about the Libreoffice-commits
mailing list