summaryrefslogtreecommitdiff
path: root/src/wx/content_panel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/content_panel.cc')
-rw-r--r--src/wx/content_panel.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc
index efc445bc9..654378248 100644
--- a/src/wx/content_panel.cc
+++ b/src/wx/content_panel.cc
@@ -343,14 +343,15 @@ ContentPanel::add_folder_clicked ()
_film->examine_and_add_content (content);
}
-void
+/** @return true if this remove "click" should be ignored */
+bool
ContentPanel::remove_clicked (bool hotkey)
{
/* If the method was called because Delete was pressed check that our notebook page
is visible and that the content list is focussed.
*/
if (hotkey && (_parent->GetCurrentPage() != _panel || !_content->HasFocus())) {
- return;
+ return true;
}
BOOST_FOREACH (shared_ptr<Content> i, selected ()) {
@@ -358,6 +359,7 @@ ContentPanel::remove_clicked (bool hotkey)
}
selection_changed ();
+ return false;
}
void