summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2023-11-30 16:53:01 +0100
committerSamuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>2023-12-04 14:40:41 +0100
commita5418fbe09860f770e8aa2f478023c0843bb05d8 (patch)
treeea91a11948e9a03068d6edd9aa4b0b75d4d381f2 /cui
parent8bf16dc47e518e3cd2a6611b1c768ae589ea206e (diff)
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.mehrbrodt@allotropia.de>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optaboutconfig.cxx18
1 files changed, 9 insertions, 9 deletions
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)