TreeIter nuevo = store2.Append ();
for(int i=0; i<4; i++)
- store2.SetValue (nuevo, i, store1.GetValue (iter, i));
- store1.Remove (ref iter);
+ store2.SetValue (nuevo, i, model.GetValue (iter, i));
+
+ TreeIter rem = (model as TreeModelSort).ConvertIterToChildIter (iter);
+ store1.Remove (ref rem);
}
}
TreeIter nuevo = store2.Append ();
for(int i=0; i<4; i++)
- store2.SetValue (nuevo, i, store1.GetValue (iter, i));
- store1.Remove (ref iter);
+ store2.SetValue (nuevo, i, model.GetValue (iter, i));
+
+ TreeIter rem = (model as TreeModelSort).ConvertIterToChildIter (iter);
+ store1.Remove (ref rem);
}
}