X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fkey_dialog.cc;h=2d8cd4c37afee4dc0f5417b0868b02b6370dd116;hb=a713e8258acc3f0e960c4e87ba8684902d29a591;hp=414e61d37ec93cb3194aeb7bb953eabdb1e482ce;hpb=ad5c8849fc3ef5aad88201f28db5474a60db4436;p=dcpomatic.git diff --git a/src/wx/key_dialog.cc b/src/wx/key_dialog.cc index 414e61d37..2d8cd4c37 100644 --- a/src/wx/key_dialog.cc +++ b/src/wx/key_dialog.cc @@ -20,6 +20,7 @@ #include "key_dialog.h" #include "wx_util.h" +#include "dcpomatic_button.h" #include using std::cout; @@ -47,7 +48,7 @@ KeyDialog::KeyDialog (wxWindow* parent, dcp::Key key) _key->SetValue (std_to_wx (key.hex ())); _key->SetMaxLength (32); - _random = add (new wxButton (this, wxID_ANY, _("Random"))); + _random = add (new Button(this, _("Random"))); _key->Bind (wxEVT_TEXT, boost::bind (&KeyDialog::key_changed, this)); _random->Bind (wxEVT_BUTTON, boost::bind (&KeyDialog::random, this));