Fix for always adding OGS files to Recent Files menu

Fixes an error where OGS files were not added to -=Recent Files= menu when they where opened from a tree view.