summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-06 21:29:26 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-07 10:05:35 +0200
commita3f0459e57980a70bcb13f0e639bbed26d2d8b62 (patch)
treeeeee4ed78b4576121d326a652edf3a07a38cde11 /sc
parent6b46b053c78eb99d5fa4f296d25c8101ef4552d3 (diff)
ScDocShell::GetActiveDialogParent instead of Application::GetDefDialogParent
which is more likely to be the relevant calc window Change-Id: I7c939c42752e103494a1df7154b3318643d5206c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113705 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/docshell/impex.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/source/ui/docshell/impex.cxx b/sc/source/ui/docshell/impex.cxx
index 1087b2bcec51..3abb445590a9 100644
--- a/sc/source/ui/docshell/impex.cxx
+++ b/sc/source/ui/docshell/impex.cxx
@@ -238,8 +238,7 @@ bool ScImportExport::StartPaste()
ScEditableTester aTester( rDoc, aRange );
if ( !aTester.IsEditable() )
{
- vcl::Window* pWin = Application::GetDefDialogParent();
- std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(pWin ? pWin->GetFrameWeld() : nullptr,
+ std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(ScDocShell::GetActiveDialogParent(),
VclMessageType::Info, VclButtonsType::Ok,
ScResId(aTester.GetMessageId())));
xInfoBox->run();