cui/source/options/optaboutconfig.cxx |   18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

New commits:
commit a5418fbe09860f770e8aa2f478023c0843bb05d8
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Thu Nov 30 16:53:01 2023 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Mon Dec 4 14:40:41 2023 +0100

    tdf#158457 Use proper parent
    
    Change-Id: Ic7bd3a2ae4dd0e21186df30bf221cf14c3511ac4
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160161
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>

diff --git a/cui/source/options/optaboutconfig.cxx 
b/cui/source/options/optaboutconfig.cxx
index a3ccf7fe0206..b5d218ecadad 100644
--- a/cui/source/options/optaboutconfig.cxx
+++ b/cui/source/options/optaboutconfig.cxx
@@ -751,8 +751,8 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
                 sal_Int64 nMax = sPropertyType == "short"
                                      ? SAL_MAX_INT16
                                      : sPropertyType == "int" ? SAL_MAX_INT32 
: SAL_MAX_INT64;
-                SvxNumberDialog aNumberDialog(m_pParent, sPropertyName, 
sDialogValue.toInt64(),
-                                              nMin, nMax);
+                SvxNumberDialog aNumberDialog(m_xDialog.get(), sPropertyName,
+                                              sDialogValue.toInt64(), nMin, 
nMax);
                 if (aNumberDialog.run() == RET_OK)
                 {
                     sal_Int64 nNewValue = aNumberDialog.GetNumber();
@@ -774,7 +774,7 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
             }
             else if (sPropertyType == "double")
             {
-                SvxDecimalNumberDialog aNumberDialog(m_pParent, sPropertyName,
+                SvxDecimalNumberDialog aNumberDialog(m_xDialog.get(), 
sPropertyName,
                                                      sDialogValue.toDouble());
                 if (aNumberDialog.run() == RET_OK)
                 {
@@ -786,7 +786,7 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
             }
             else if (sPropertyType == "string")
             {
-                SvxNameDialog aNameDialog(m_pParent, sDialogValue, 
sPropertyName);
+                SvxNameDialog aNameDialog(m_xDialog.get(), sDialogValue, 
sPropertyName);
                 aNameDialog.SetCheckNameHdl(LINK(this, CuiAboutConfigTabPage, 
ValidNameHdl));
                 if (aNameDialog.run() == RET_OK)
                 {
@@ -797,7 +797,7 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
             }
             else if (sPropertyType == "short-list")
             {
-                SvxListDialog aListDialog(m_pParent);
+                SvxListDialog aListDialog(m_xDialog.get());
                 aListDialog.SetEntries(commaStringToSequence(sDialogValue));
                 aListDialog.SetMode(ListMode::Int16);
                 if (aListDialog.run() == RET_OK)
@@ -814,7 +814,7 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
             }
             else if (sPropertyType == "int-list")
             {
-                SvxListDialog aListDialog(m_pParent);
+                SvxListDialog aListDialog(m_xDialog.get());
                 aListDialog.SetEntries(commaStringToSequence(sDialogValue));
                 aListDialog.SetMode(ListMode::Int32);
                 if (aListDialog.run() == RET_OK)
@@ -831,7 +831,7 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
             }
             else if (sPropertyType == "long-list")
             {
-                SvxListDialog aListDialog(m_pParent);
+                SvxListDialog aListDialog(m_xDialog.get());
                 aListDialog.SetEntries(commaStringToSequence(sDialogValue));
                 aListDialog.SetMode(ListMode::Int64);
                 if (aListDialog.run() == RET_OK)
@@ -848,7 +848,7 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
             }
             else if (sPropertyType == "double-list")
             {
-                SvxListDialog aListDialog(m_pParent);
+                SvxListDialog aListDialog(m_xDialog.get());
                 aListDialog.SetEntries(commaStringToSequence(sDialogValue));
                 aListDialog.SetMode(ListMode::Double);
                 if (aListDialog.run() == RET_OK)
@@ -865,7 +865,7 @@ IMPL_LINK_NOARG(CuiAboutConfigTabPage, StandardHdl_Impl, 
weld::Button&, void)
             }
             else if (sPropertyType == "string-list")
             {
-                SvxListDialog aListDialog(m_pParent);
+                SvxListDialog aListDialog(m_xDialog.get());
                 aListDialog.SetEntries(commaStringToSequence(sDialogValue));
                 aListDialog.SetMode(ListMode::String);
                 if (aListDialog.run() == RET_OK)

Reply via email to