1
0
mirror of https://github.com/moparisthebest/Simba synced 2024-08-13 16:53:59 -04:00

You can now click on functions in the function list again :)

This commit is contained in:
Niels 2010-05-18 16:24:01 +02:00
parent 86b0077021
commit 2cfd77c490

View File

@ -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;