Fix file selection when using tabs to select files (fixed #2855)
Merge pull request #2858 from dinhviethoa/2855-fix-file-selection

Fix file selection when using tabs to select files