Fixed drag and drop problem

Fixed when user drags and drops a file onto frame, so that program knows
there is a file.