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