Fixed the issue with duplicating and saving a file resulting in its original temporary file name being remembered in the list of recent files (closes #429).