diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-03-08 09:06:58 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-03-08 14:36:21 +0100 |
commit | 21ef6e1157ccaca2916ec124e116fe85c74bb4ec (patch) | |
tree | 8544d1be3dc36acac1e92f51a9f2cdf4794e1725 | |
parent | cdd14e60bb86ca565ae2a14dff5e426946250119 (diff) |
tdf#116264 Show added_buttons by default
Change-Id: Ia2d299fdc63d3f75ea0cdb9e9b6ca8340a63cd06
Reviewed-on: https://gerrit.libreoffice.org/50935
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | vcl/source/app/salvtables.cxx | 1 | ||||
-rw-r--r-- | vcl/source/window/layout.cxx | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index b01cff2f25b9..bb304d2dc811 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -448,6 +448,7 @@ public: VclButtonBox* pBox = m_xDialog->get_action_area(); VclPtr<PushButton> xButton(VclPtr<PushButton>::Create(pBox, WB_CLIPCHILDREN|WB_CENTER|WB_VCENTER)); xButton->SetText(rText); + xButton->Show(); m_xDialog->add_button(xButton, nResponse, true); } diff --git a/vcl/source/window/layout.cxx b/vcl/source/window/layout.cxx index 2839ab356385..2e8fec856ce2 100644 --- a/vcl/source/window/layout.cxx +++ b/vcl/source/window/layout.cxx @@ -2235,6 +2235,7 @@ void MessageDialog::create_message_area() case VclButtonsType::Cancel: pBtn.set( VclPtr<CancelButton>::Create(pButtonBox) ); pBtn->SetStyle(pBtn->GetStyle() & WB_DEFBUTTON); + pBtn->Show(); pBtn->set_id("cancel"); add_button(pBtn, RET_CANCEL, true); nDefaultResponse = RET_CANCEL; |