Re: Possible row selection interfering with Update



muppet <scott asofyet org> writes:

    foreach my $path (reverse $selection->get_selected_rows ()) {
        $model->remove ($model->get_iter ($path));
    }

You know, after going through the TreeRowReference business I now
suspect a loop like that is enough :-).

(If a row-deleted signal handler causes more row deletions it may
invalidate the path and iter passed to further handlers - so don't do
that!  Meaning it's enough to remove() from the last towards the first
...)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]