sw/source/ui/fldui/DropDownFormFieldDialog.cxx | 3 +-- sw/source/uibase/inc/DropDownFormFieldDialog.hxx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-)
New commits: commit 10df4750c18d18913f11f9d3224398499c9a3c01 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Tue Aug 20 19:45:41 2019 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Wed Aug 21 13:00:00 2019 +0200 make info dialog a child of the dropdown dialog instead of a child of the parent of the dropdown dialog Change-Id: Ib94be49955efb4384a77a524f3614db7e56cd03c Reviewed-on: https://gerrit.libreoffice.org/77860 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caol...@redhat.com> Tested-by: Caolán McNamara <caol...@redhat.com> diff --git a/sw/source/ui/fldui/DropDownFormFieldDialog.cxx b/sw/source/ui/fldui/DropDownFormFieldDialog.cxx index 7d703dee7122..4457b29f5eaf 100644 --- a/sw/source/ui/fldui/DropDownFormFieldDialog.cxx +++ b/sw/source/ui/fldui/DropDownFormFieldDialog.cxx @@ -21,7 +21,6 @@ DropDownFormFieldDialog::DropDownFormFieldDialog(weld::Widget* pParent, mark::IFieldmark* pDropDownField) : GenericDialogController(pParent, "modules/swriter/ui/dropdownformfielddialog.ui", "DropDownFormFieldDialog") - , m_pParent(pParent) , m_pDropDownField(pDropDownField) , m_bListHasChanged(false) , m_xListItemEntry(m_xBuilder->weld_entry("item_entry")) @@ -135,7 +134,7 @@ void DropDownFormFieldDialog::AppendItemToList() if (m_xListItemsTreeView->n_children() >= ODF_FORMDROPDOWN_ENTRY_COUNT_LIMIT) { std::unique_ptr<weld::MessageDialog> xInfoBox(Application::CreateMessageDialog( - m_pParent, VclMessageType::Info, VclButtonsType::Ok, + m_xDialog.get(), VclMessageType::Info, VclButtonsType::Ok, SwResId(STR_DROP_DOWN_FIELD_ITEM_LIMIT))); xInfoBox->run(); return; diff --git a/sw/source/uibase/inc/DropDownFormFieldDialog.hxx b/sw/source/uibase/inc/DropDownFormFieldDialog.hxx index e3cf8032b97f..ae1e1b51db62 100644 --- a/sw/source/uibase/inc/DropDownFormFieldDialog.hxx +++ b/sw/source/uibase/inc/DropDownFormFieldDialog.hxx @@ -26,7 +26,6 @@ namespace sw class DropDownFormFieldDialog : public weld::GenericDialogController { private: - weld::Widget* const m_pParent; mark::IFieldmark* m_pDropDownField; bool m_bListHasChanged; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits