Переглянути джерело

Dont show files which dont have a memo because MaxMemos was reached.

Martijn Laan 2 днів тому
батько
коміт
eacff82fa4
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      Projects/Src/IDE.MainForm.pas

+ 2 - 1
Projects/Src/IDE.MainForm.pas

@@ -5893,7 +5893,8 @@ begin
       { Buiild file list }
       Files.Add(FMainMemo.Filename);
       for var IncludedFile in FIncludedFiles do
-        Files.Add(IncludedFile.Filename);
+        if IncludedFile.Memo <> nil then
+          Files.Add(IncludedFile.Filename);
       if FPreprocessorOutputMemo.Used then
         Files.Add(MemosTabSet.Tabs[MemoToTabIndex(FPreprocessorOutputMemo)]);