From 10df4750c18d18913f11f9d3224398499c9a3c01 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Tue, 20 Aug 2019 19:45:41 +0100 Subject: make info dialog a child of the dropdown dialog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Tested-by: Caolán McNamara --- sw/source/ui/fldui/DropDownFormFieldDialog.cxx | 3 +-- sw/source/uibase/inc/DropDownFormFieldDialog.hxx | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) (limited to 'sw') 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 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; -- cgit