浏览代码

* fix from mantis 15655 that adds notifiers to tlist.addlist.

git-svn-id: trunk@14885 -
marco 15 年之前
父节点
当前提交
fb1e916ed2
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 10 2
      rtl/objpas/classes/lists.inc

+ 10 - 2
rtl/objpas/classes/lists.inc

@@ -618,9 +618,17 @@ begin
 end;
 
 Procedure TList.AddList(AList : TList);
+var
+  I: Integer;
 begin
-  FList.AddList(AList.FList);
-end;
+  { this only does FList.AddList(AList.FList), avoiding notifications }
+  AddList(AList);
+
+  { make lnAdded notifications }
+  for I := 0 to AList.Count - 1 do
+    if AList[I] <> nil then
+      Notify(AList[I], lnAdded);
+end;            
 
 procedure TList.Clear;