Fixed issue #1677: Clicking "revert" on a file should automatically check the file in the revert dialog

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>