Fix some spelling mistakes (mostly in comments).
[dcpomatic.git] / src / wx / server_dialog.cc
index f5983b4cdfbb534c2681036fce008b4136c87c65..5761222c64eec703decaf228c3dfb760e11b39b4 100644 (file)
@@ -23,7 +23,8 @@
 #include "wx_util.h"
 
 using std::string;
-using boost::shared_ptr;
+using std::shared_ptr;
+using boost::optional;
 
 ServerDialog::ServerDialog (wxWindow* parent)
        : TableDialog (parent, _("Server"), 2, 1, true)
@@ -40,6 +41,8 @@ ServerDialog::ServerDialog (wxWindow* parent)
        _host = add (new wxTextCtrl (this, wxID_ANY, wxT (""), wxDefaultPosition, size));
 
        layout ();
+
+       _host->SetFocus ();
 }
 
 void
@@ -48,7 +51,7 @@ ServerDialog::set (string server)
        _host->SetValue (std_to_wx (server));
 }
 
-string
+optional<string>
 ServerDialog::get () const
 {
        return wx_to_std (_host->GetValue ());