summaryrefslogtreecommitdiff
path: root/wx+/file_drop.h
diff options
context:
space:
mode:
authorDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:50 +0200
committerDaniel Wilhelm <daniel@wili.li>2014-04-18 17:20:50 +0200
commit7e706cf64654aea466c059c307e5723e2423ed5d (patch)
treee85f0d28d7c81b6d21419fc38e1a654cca2212b1 /wx+/file_drop.h
parent5.5 (diff)
downloadFreeFileSync-7e706cf64654aea466c059c307e5723e2423ed5d.tar.gz
FreeFileSync-7e706cf64654aea466c059c307e5723e2423ed5d.tar.bz2
FreeFileSync-7e706cf64654aea466c059c307e5723e2423ed5d.zip
5.6
Diffstat (limited to 'wx+/file_drop.h')
-rw-r--r--wx+/file_drop.h3
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;
bgstack15