diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index b18bc180..2650b37c 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -6283,7 +6283,7 @@ namespace IDE mRecentFileSelector.Prev(); } - void ShowRecentFile(int idx, bool setFocus = true) + void ShowRecentFile(int idx, bool setFocus = true, bool checkIfExists = false) { if (idx >= mRecentlyDisplayedFiles.Count) return; @@ -6294,6 +6294,8 @@ namespace IDE ShowDisassemblyPanel(); return; } + if ((checkIfExists) && (!File.Exists(sourceFile))) + return; ShowSourceFile(sourceFile, null, SourceShowType.ShowExisting, setFocus); }