diff options
Diffstat (limited to 'ui/exec_finished_box.cpp')
-rw-r--r-- | ui/exec_finished_box.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/exec_finished_box.cpp b/ui/exec_finished_box.cpp index a8ee9f4a..edc57d58 100644 --- a/ui/exec_finished_box.cpp +++ b/ui/exec_finished_box.cpp @@ -192,7 +192,8 @@ void ExecFinishedBox::setValueAndUpdateList(const std::wstring& value) void ExecFinishedBox::OnSelection(wxCommandEvent& event) { wxCommandEvent dummy2(wxEVT_REPLACE_BUILT_IN_COMMANDS); //we cannot replace built-in commands at this position in call stack, so defer to a later time! - GetEventHandler()->AddPendingEvent(dummy2); // + if (auto handler = GetEventHandler()) + handler->AddPendingEvent(dummy2); event.Skip(); } |