files: another minor optimization

This commit is contained in:
Ignacio Casal Quinteiro 2013-02-16 15:37:47 +01:00
parent 04249d8fbe
commit 04799a8f5e

View file

@ -174,17 +174,16 @@ public class TreeStore : Gtk.TreeStore
items.reverse();
unowned List<Item?>? i = items;
var paths = new HashTable<string, Gtk.TreePath>(str_hash, str_equal);
d_update_id = Idle.add(() => {
if (i == null)
if (items == null)
{
d_update_id = 0;
return false;
}
Item item = i.data;
i = i.next;
Item item = items.data;
items.remove_link(items);
var root = item.root;
var entry = item.entry;