From 4b64f2c14da45ee157506e6c6be9ad97f70fb551 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Fri, 25 Sep 2020 09:39:50 -0700 Subject: [PATCH] Fixed show-recent-on-close issue with renamed files --- IDE/src/IDEApp.bf | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); }