summaryrefslogtreecommitdiff
path: root/wx+/file_drop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'wx+/file_drop.cpp')
-rw-r--r--wx+/file_drop.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/wx+/file_drop.cpp b/wx+/file_drop.cpp
index 86db57c1..cd233c56 100644
--- a/wx+/file_drop.cpp
+++ b/wx+/file_drop.cpp
@@ -60,8 +60,7 @@ private:
filePaths.push_back(utfTo<Zstring>(file));
//create a custom event on drop window: execute event after file dropping is completed! (after mouse is released)
- if (wxEvtHandler* handler = dropWindow_.GetEventHandler())
- handler->AddPendingEvent(FileDropEvent(filePaths));
+ dropWindow_.GetEventHandler()->AddPendingEvent(FileDropEvent(filePaths));
return true;
}
bgstack15