diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-10-20 11:42:14 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-10-20 11:42:14 +0100 |
| commit | 00b60f52add041a36fa62118baf4b5ac78993980 (patch) | |
| tree | a1427c61dc4ed0a17bb9f120985481f1772b9d50 /src/wx/server_dialog.cc | |
| parent | bd3be0efd59054666fd04d69715275f257994f5e (diff) | |
Give a better error if the user tries to load a non-KDM as a DKDM into the KDM creator.
Diffstat (limited to 'src/wx/server_dialog.cc')
| -rw-r--r-- | src/wx/server_dialog.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wx/server_dialog.cc b/src/wx/server_dialog.cc index f5983b4cd..abad58989 100644 --- a/src/wx/server_dialog.cc +++ b/src/wx/server_dialog.cc @@ -24,6 +24,7 @@ using std::string; using boost::shared_ptr; +using boost::optional; ServerDialog::ServerDialog (wxWindow* parent) : TableDialog (parent, _("Server"), 2, 1, true) @@ -48,7 +49,7 @@ ServerDialog::set (string server) _host->SetValue (std_to_wx (server)); } -string +optional<string> ServerDialog::get () const { return wx_to_std (_host->GetValue ()); |
