fix race condition when opening torrent/magnet dialog
Merge pull request #2 from r04r/race_condition

fix race condition when opening torrent/magnet dialog