summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-21 21:55:20 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-06-22 19:28:04 +0200
commit4cbf5a4f666ac4d7b01746bc36ab01400e28ff40 (patch)
tree10820be8bde947a816b6339782e9eee2bb0bd971 /vcl
parent8e0b55bc9b788d2ac95768af6b9e88996dc10d29 (diff)
Related: tdf#126036 sort button by native order for async dialogs too
Change-Id: Iddc689b8d332e8e0127806c37b5ccce66eadfcf6 Reviewed-on: https://gerrit.libreoffice.org/74540 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/salvtables.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index b17e0215258d..fc62bb6441e2 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1218,6 +1218,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);
}
@@ -1229,6 +1232,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);
}