[Libreoffice-commits] core.git: sc/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jan 28 14:42:58 UTC 2020
sc/source/core/data/dpobject.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 4c741189265847916b9f9a65dc9f119d16e2c4c5
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Tue Jan 28 12:24:51 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Jan 28 15:42:11 2020 +0100
Resolves: tdf#130239 set an explicit parent for the message dialog
Change-Id: If6e4bdf674f1aaaaaa5ceaa7cda5715af1aa7ce6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/87607
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sc/source/core/data/dpobject.cxx b/sc/source/core/data/dpobject.cxx
index 45736b4d4db0..2cd0e6f0ef56 100644
--- a/sc/source/core/data/dpobject.cxx
+++ b/sc/source/core/data/dpobject.cxx
@@ -17,6 +17,7 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
+#include <docsh.hxx>
#include <dpcache.hxx>
#include <dpobject.hxx>
#include <dptabsrc.hxx>
@@ -3259,7 +3260,7 @@ uno::Reference<sdbc::XRowSet> ScDPCollection::DBCaches::createRowSet(
catch ( const sdbc::SQLException& rError )
{
//! store error message
- std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(nullptr,
+ std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog(ScDocShell::GetActiveDialogParent(),
VclMessageType::Info, VclButtonsType::Ok,
rError.Message));
xInfoBox->run();
More information about the Libreoffice-commits
mailing list