diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-04-06 21:29:26 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-04-07 10:05:35 +0200 |
commit | a3f0459e57980a70bcb13f0e639bbed26d2d8b62 (patch) | |
tree | eeee4ed78b4576121d326a652edf3a07a38cde11 | |
parent | 6b46b053c78eb99d5fa4f296d25c8101ef4552d3 (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>
-rw-r--r-- | sc/source/ui/docshell/impex.cxx | 3 |
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(); |