summaryrefslogtreecommitdiff
path: root/src/wx/kdm_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-01-14 21:49:40 +0000
committerCarl Hetherington <cth@carlh.net>2013-01-14 21:49:40 +0000
commit048f9b6b5569f03d1342a04f75c83a2bad340996 (patch)
tree2e9db97154b82b91a7a6ff1002d317f35d11608d /src/wx/kdm_dialog.cc
parent3031638f0ddf23654b72af2088a7616791307310 (diff)
Various work on certificate handling for screens; need XML config here, now.
Diffstat (limited to 'src/wx/kdm_dialog.cc')
-rw-r--r--src/wx/kdm_dialog.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/wx/kdm_dialog.cc b/src/wx/kdm_dialog.cc
index 0febdf38e..d94c13057 100644
--- a/src/wx/kdm_dialog.cc
+++ b/src/wx/kdm_dialog.cc
@@ -269,7 +269,7 @@ KDMDialog::add_screen_clicked (wxCommandEvent &)
ScreenDialog* d = new ScreenDialog (this, "Add Screen");
d->ShowModal ();
- shared_ptr<Screen> s (new Screen (d->name()));
+ shared_ptr<Screen> s (new Screen (d->name(), d->certificate()));
c->screens.push_back (s);
add_screen (c, s);
@@ -287,10 +287,11 @@ KDMDialog::edit_screen_clicked (wxCommandEvent &)
pair<wxTreeItemId, shared_ptr<Screen> > s = selected_screens().front();
- ScreenDialog* d = new ScreenDialog (this, "Edit screen", s.second->name);
+ ScreenDialog* d = new ScreenDialog (this, "Edit screen", s.second->name, s.second->certificate);
d->ShowModal ();
s.second->name = d->name ();
+ s.second->certificate = d->certificate ();
_targets->SetItemText (s.first, std_to_wx (d->name()));
Config::instance()->write ();