summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-04-17 21:02:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-04-18 00:21:10 +0200
commitc395eeb09381a7a8b9157027e0ac7d9536943fb3 (patch)
tree6255cc3bc1d6b462658cb0477d58ad950bf5b149 /svx
parenta2851d562cdfaf06e5f767030677846f3f129b1c (diff)
Resolves: tdf#117068 wrong parent for exception dialog
Change-Id: I51e6b32593f2e67585c6c45b0b1daefcf4860e20 Reviewed-on: https://gerrit.libreoffice.org/53067 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/form/fmtools.cxx4
-rw-r--r--svx/source/form/formcontroller.cxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/form/fmtools.cxx b/svx/source/form/fmtools.cxx
index 39c9969705be..25a3a38cf581 100644
--- a/svx/source/form/fmtools.cxx
+++ b/svx/source/form/fmtools.cxx
@@ -150,9 +150,9 @@ void displayException(const css::sdb::SQLContext& _rExcept, vcl::Window* _pParen
}
-void displayException(const css::sdb::SQLErrorEvent& _rEvent)
+void displayException(const css::sdb::SQLErrorEvent& _rEvent, vcl::Window* _pParent)
{
- displayException(_rEvent.Reason);
+ displayException(_rEvent.Reason, _pParent);
}
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx
index 139147fd377e..4691584d8b24 100644
--- a/svx/source/form/formcontroller.cxx
+++ b/svx/source/form/formcontroller.cxx
@@ -3829,7 +3829,7 @@ void SAL_CALL FormController::errorOccured(const SQLErrorEvent& aEvent)
else
{
aGuard.clear();
- displayException( aEvent );
+ displayException(aEvent, getDialogParentWindow());
}
}