summaryrefslogtreecommitdiff
path: root/src/wx/html_dialog.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/html_dialog.cc')
-rw-r--r--src/wx/html_dialog.cc9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/wx/html_dialog.cc b/src/wx/html_dialog.cc
index cce62e1eb..19c3aaf2a 100644
--- a/src/wx/html_dialog.cc
+++ b/src/wx/html_dialog.cc
@@ -35,7 +35,7 @@ using namespace boost::placeholders;
#endif
-HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html)
+HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html, bool ok)
: wxDialog (parent, wxID_ANY, title)
{
auto sizer = new wxBoxSizer (wxVERTICAL);
@@ -62,6 +62,13 @@ HTMLDialog::HTMLDialog (wxWindow* parent, wxString title, wxString html)
/* Set height */
SetSize (h->GetInternalRepresentation()->GetWidth(), h->GetInternalRepresentation()->GetHeight() + 256);
+
+ if (ok) {
+ auto buttons = CreateSeparatedButtonSizer(wxOK);
+ if (buttons) {
+ sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder());
+ }
+ }
}