diff options
Diffstat (limited to 'wx+/file_drop.h')
-rw-r--r-- | wx+/file_drop.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/wx+/file_drop.h b/wx+/file_drop.h index 0e9ba538..cdb19f4b 100644 --- a/wx+/file_drop.h +++ b/wx+/file_drop.h @@ -91,8 +91,7 @@ private: { //create a custom event on drop window: execute event after file dropping is completed! (after mouse is released) FileDropEvent evt(filenames, dropWindow_, wxPoint(x, y)); - auto handler = dropWindow_.GetEventHandler(); - if (handler) + if (wxEvtHandler* handler = dropWindow_.GetEventHandler()) handler->AddPendingEvent(evt); } return true; |