From a8fde93e351c47df8d275a67056a65eb51c43663 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 21 Sep 2019 21:23:44 +0100 Subject: page is not in a vcl Dialog anymore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ifc028fcdb927b9224453852290484bb970a6c6a4 Reviewed-on: https://gerrit.libreoffice.org/79322 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- dbaccess/source/ui/dlg/tablespage.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'dbaccess') diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx index 99f12fe8f93a..339eb9103ea2 100644 --- a/dbaccess/source/ui/dlg/tablespage.cxx +++ b/dbaccess/source/ui/dlg/tablespage.cxx @@ -260,8 +260,7 @@ namespace dbaui if (aErrorInfo.isValid()) { // establishing the connection failed. Show an error window and exit. - vcl::Window *pParent = GetParentDialog(); - OSQLMessageBox aMessageBox(pParent ? pParent->GetFrameWeld() : nullptr, aErrorInfo); + OSQLMessageBox aMessageBox(GetDialogFrameWeld(), aErrorInfo); aMessageBox.run(); m_xTables->set_sensitive(false); m_xTablesList->GetWidget().clear(); -- cgit