fix a regression when dragging and dropping files
Merge pull request #3591 from devoncarew/devoncarew_fix_dnd

fix a regression when dragging and dropping files