Related: tdf#126036 sort button by native order for async dialogs too
Change-Id: Iddc689b8d332e8e0127806c37b5ccce66eadfcf6
Reviewed-on: https://gerrit.libreoffice.org/74541
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 1330b12..f5f86da2 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1202,6 +1202,9 @@ public:
VclAbstractDialog::AsyncContext aCtx;
aCtx.mxOwnerDialogController = aOwner;
aCtx.maEndDialogFn = rEndDialogFn;
VclButtonBox* pActionArea = m_xDialog->get_action_area();
if (pActionArea)
pActionArea->sort_native_button_order();
return m_xDialog->StartExecuteAsync(aCtx);
}
@@ -1213,6 +1216,9 @@ public:
// which is that rxSelf enforces.
aCtx.mxOwnerSelf = rxSelf;
aCtx.maEndDialogFn = rEndDialogFn;
VclButtonBox* pActionArea = m_xDialog->get_action_area();
if (pActionArea)
pActionArea->sort_native_button_order();
return m_xDialog->StartExecuteAsync(aCtx);
}