diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-02-15 23:16:53 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-02-15 23:16:53 +0000 |
| commit | fa1103a905a6781ff207f51b293156a23b093edd (patch) | |
| tree | 8b871be8aa014a43b6a9325c8617e74314aba9f3 /src | |
| parent | f4901f4de5e48f53c62e89bbe01925bc9d6ee4f2 (diff) | |
Stop Delete key deleting content in unexpected circumstances.
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; } |
