diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-09-07 23:36:40 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-09-07 23:36:40 +0100 |
| commit | 5dc2dbdb6639f8d617a40209ad603d2a38f9df2a (patch) | |
| tree | 849db948bfed659df5a9f5bfb2bdb8519c313de6 /src/tools | |
| parent | a4d3b0b6b1069b08fff0559f63d73bb7353256bd (diff) | |
| parent | 38fd8d2d230a239079ffdf3e10a48833ade6e8c5 (diff) | |
Merge master.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 3bef7bce3..5f6a98075 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -164,7 +164,7 @@ public: setup_menu (bar); SetMenuBar (bar); - Config::instance()->Changed.connect (boost::bind (&Frame::config_changed, this)); + _config_changed_connection = Config::instance()->Changed.connect (boost::bind (&Frame::config_changed, this)); config_changed (); Bind (wxEVT_COMMAND_MENU_SELECTED, boost::bind (&Frame::file_new, this), ID_file_new); @@ -516,8 +516,13 @@ private: return; } + /* We don't want to hear about any more configuration changes, since they + cause the File menu to be altered, which itself will be deleted around + now (without, as far as I can see, any way for us to find out). + */ + _config_changed_connection.disconnect (); + maybe_save_then_delete_film (); - ev.Skip (); } @@ -685,6 +690,7 @@ private: int _history_items; int _history_position; wxMenuItem* _history_separator; + boost::signals2::scoped_connection _config_changed_connection; }; static const wxCmdLineEntryDesc command_line_description[] = { |
