From e3dd67d199a1dfe3c1b04cd7fd5097171e74cfb2 Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 19 Jun 2010 15:18:13 +0000 Subject: [PATCH] IDE: clean up git-svn-id: trunk@26193 - --- ide/sourceeditor.pp | 2 -- 1 file changed, 2 deletions(-) diff --git a/ide/sourceeditor.pp b/ide/sourceeditor.pp index 80037a0851..108455ef59 100644 --- a/ide/sourceeditor.pp +++ b/ide/sourceeditor.pp @@ -5670,8 +5670,6 @@ begin CloseAction := caHide; {$IFnDEF SingleSrcWindow} if PageCount = 0 then begin { $NOTE maybe keep the last one} - if EnvironmentOptions.IDEWindowLayoutList.ItemByFormID(Self.Name) <> nil then - EnvironmentOptions.IDEWindowLayoutList.ItemByFormID(Self.Name).CloseForm; // Make the name unique, because it may not immediately be released Name := Name + '___' + IntToStr(PtrUInt(Pointer(Self))); CloseAction := caFree;