fix a bug where the program forgets to activate the filebrowserdialog
Merge pull request #391 from haiwen/fix_activate_window

fix a bug where the program forgets to activate the filebrowserdialog