From 2cfd77c490be07cca67d71766cac23f21391e4cb Mon Sep 17 00:00:00 2001 From: Niels Date: Tue, 18 May 2010 16:24:01 +0200 Subject: [PATCH] You can now click on functions in the function list again :) --- Projects/Simba/framefunctionlist.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projects/Simba/framefunctionlist.pas b/Projects/Simba/framefunctionlist.pas index d02e4dc..15f49af 100644 --- a/Projects/Simba/framefunctionlist.pas +++ b/Projects/Simba/framefunctionlist.pas @@ -130,9 +130,9 @@ begin begin MethodInfo := PMethodInfo(node.Data)^; if (DraggingNode = node) and (MethodInfo.BeginPos > 0) then - if (MethodInfo.Filename <> nil) and ((MethodInfo.Filename = '') xor FileExistsUTF8(MethodInfo.Filename)) then + if (MethodInfo.Filename = nil) or ((MethodInfo.Filename = '') xor FileExistsUTF8(MethodInfo.Filename)) then begin - if (MethodInfo.Filename <> '') then + if (MethodInfo.Filename <> nil) and (MethodInfo.Filename <> '') then SimbaForm.LoadScriptFile(MethodInfo.Filename,true,true); SimbaForm.CurrScript.SynEdit.SelStart := MethodInfo.BeginPos + 1; SimbaForm.CurrScript.SynEdit.SelEnd := MethodInfo.EndPos + 1;