Fixed issue #2359: Selected files counter not updated after revert

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