diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/content_panel.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wx/content_panel.cc b/src/wx/content_panel.cc index bae8883de..a68998232 100644 --- a/src/wx/content_panel.cc +++ b/src/wx/content_panel.cc @@ -329,9 +329,9 @@ void ContentPanel::remove_clicked () { /* This method is also called when Delete is pressed, so check that our notebook page - is visible. + is visible and that the content list is focussed. */ - if (_parent->GetCurrentPage() != _panel) { + if (_parent->GetCurrentPage() != _panel || !_content->HasFocus()) { return; } |
