X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fserver_dialog.cc;h=5761222c64eec703decaf228c3dfb760e11b39b4;hb=00d0a99cfd1616e80efd86ec0531e5ca86a455e8;hp=abad589891231e0de8e876039df6b03424e43855;hpb=00b60f52add041a36fa62118baf4b5ac78993980;p=dcpomatic.git diff --git a/src/wx/server_dialog.cc b/src/wx/server_dialog.cc index abad58989..5761222c6 100644 --- a/src/wx/server_dialog.cc +++ b/src/wx/server_dialog.cc @@ -23,7 +23,7 @@ #include "wx_util.h" using std::string; -using boost::shared_ptr; +using std::shared_ptr; using boost::optional; ServerDialog::ServerDialog (wxWindow* parent) @@ -41,6 +41,8 @@ ServerDialog::ServerDialog (wxWindow* parent) _host = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, size)); layout (); + + _host->SetFocus (); } void