diff options
| author | Carl Hetherington <cth@carlh.net> | 2017-03-07 10:18:06 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2017-03-07 10:18:06 +0000 |
| commit | 443a7d74ff2a49ad45a4fb44f92abd619bc0a0b0 (patch) | |
| tree | 5cdba2339a97f9882a4f82038c914ae15de52dc0 /src/wx | |
| parent | 5a7b85d0456941a03fc1682e49fdffac2d44f817 (diff) | |
Handle failure to write to cinemas file more nicely.
Diffstat (limited to 'src/wx')
| -rw-r--r-- | src/wx/screens_panel.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index 3abe1f970..908e94f4d 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -177,7 +177,7 @@ ScreensPanel::edit_cinema_clicked () c.second->set_utc_offset_hour (d->utc_offset_hour ()); c.second->set_utc_offset_minute (d->utc_offset_minute ()); _targets->SetItemText (c.first, std_to_wx (d->name())); - Config::instance()->changed (); + Config::instance()->changed (Config::CINEMAS); } d->Destroy (); @@ -229,7 +229,7 @@ ScreensPanel::add_screen_clicked () _targets->Expand (id.get ()); } - Config::instance()->changed (); + Config::instance()->changed (Config::CINEMAS); d->Destroy (); } @@ -268,7 +268,7 @@ ScreensPanel::edit_screen_clicked () s.second->recipient = d->recipient (); s.second->trusted_devices = d->trusted_devices (); _targets->SetItemText (s.first, std_to_wx (d->name())); - Config::instance()->changed (); + Config::instance()->changed (Config::CINEMAS); d->Destroy (); } @@ -295,7 +295,7 @@ ScreensPanel::remove_screen_clicked () _targets->Delete (i->first); } - Config::instance()->changed (); + Config::instance()->changed (Config::CINEMAS); } list<shared_ptr<Screen> > |
