diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-10-02 17:05:35 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-10-03 09:58:36 +0100 |
commit | b3584b90aacd307490bfd15d2ace63e805a8b57a (patch) | |
tree | 1f1fafb20fd1dc2e19bddc2a3f4c07596096f37d /dbaccess | |
parent | e292cb0df0bd4de5804f875a68f9075e7129ebd4 (diff) |
probable attempts to find the parent dialog
Change-Id: I033f3cd9b42df21c9b63dc03e8e0136971d5dc24
Diffstat (limited to 'dbaccess')
-rw-r--r-- | dbaccess/source/ui/dlg/tablespage.cxx | 2 | ||||
-rw-r--r-- | dbaccess/source/ui/misc/WTypeSelect.cxx | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/dbaccess/source/ui/dlg/tablespage.cxx b/dbaccess/source/ui/dlg/tablespage.cxx index 19eba7de6f98..8f76496d7ea4 100644 --- a/dbaccess/source/ui/dlg/tablespage.cxx +++ b/dbaccess/source/ui/dlg/tablespage.cxx @@ -335,7 +335,7 @@ DBG_NAME(OTableSubscriptionPage) if (aErrorInfo.isValid()) { // establishing the connection failed. Show an error window and exit. - OSQLMessageBox aMessageBox( GetParent()->GetParent(), aErrorInfo ); + OSQLMessageBox aMessageBox( GetParentDialog(), aErrorInfo ); aMessageBox.Execute(); m_aTables.Enable(sal_False); m_aTablesList.Enable(sal_False); diff --git a/dbaccess/source/ui/misc/WTypeSelect.cxx b/dbaccess/source/ui/misc/WTypeSelect.cxx index 4b3078b2cb3e..0a40d8e22c0c 100644 --- a/dbaccess/source/ui/misc/WTypeSelect.cxx +++ b/dbaccess/source/ui/misc/WTypeSelect.cxx @@ -112,7 +112,7 @@ void OWizTypeSelectControl::CellModified(long nRow, sal_uInt16 nColId ) { case FIELD_PRPOERTY_COLUMNNAME: { - OCopyTableWizard* pWiz = static_cast<OCopyTableWizard*>(GetParent()->GetParent()); + OCopyTableWizard* pWiz = static_cast<OCopyTableWizard*>(GetParentDialog()); // first we have to check if this name already exists sal_Bool bDoubleName = sal_False; sal_Bool bCase = sal_True; |