diff options
Diffstat (limited to 'src/wx/content_panel.cc')
| -rw-r--r-- | src/wx/content_panel.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index deeef7f80..d1315ac34 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -328,6 +328,13 @@ ContentPanel::add_folder_clicked () void ContentPanel::remove_clicked () { + /* This method is also called when Delete is pressed, so check that our notebook page + is visible. + */ + if (_parent->GetCurrentPage() != _panel) { + return; + } + BOOST_FOREACH (shared_ptr<Content> i, selected ()) { _film->remove_content (i); } |
