Fixed issue #1024: commit freezes after click on ok with a lot of files