When opening several files at once, add all of them to recent files list.
Also, don't add an empty file to recent list when canceling the open dialog.