diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-04-26 21:55:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-04-26 21:55:23 +0100 |
| commit | 694d242518613145fd115d26ea19c383c710dc45 (patch) | |
| tree | 396bdc1a3dff9cd32924368b24f078f7c8b96e18 /src/tools | |
| parent | cb161dbe271a9f05826758f40d27e37333a27a31 (diff) | |
Fix non-working delete key.
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/dcpomatic.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc index 5676e6e57..6f5bdd664 100644 --- a/src/tools/dcpomatic.cc +++ b/src/tools/dcpomatic.cc @@ -249,7 +249,7 @@ public: accel[0].Set (wxACCEL_CTRL, static_cast<int>('A'), ID_add_file); accel[1].Set (wxACCEL_NORMAL, WXK_DELETE, ID_remove); Bind (wxEVT_MENU, boost::bind (&ContentPanel::add_file_clicked, _film_editor->content_panel()), ID_add_file); - Bind (wxEVT_MENU, boost::bind (&ContentPanel::remove_clicked, _film_editor->content_panel(), true), ID_remove); + Bind (wxEVT_MENU, boost::bind (&DOMFrame::remove_clicked, this, _1), ID_remove); wxAcceleratorTable accel_table (2, accel); SetAcceleratorTable (accel_table); @@ -259,6 +259,13 @@ public: UpdateChecker::instance()->StateChanged.connect (boost::bind (&DOMFrame::update_checker_state_changed, this)); } + void remove_clicked (wxCommandEvent& ev) + { + if (_film_editor->content_panel()->remove_clicked (true)) { + ev.Skip (); + } + } + void new_film (boost::filesystem::path path) { shared_ptr<Film> film (new Film (path)); |
