X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=WatchesFrame.py;h=cfcd14a916cc700f16082ae5dca212d4c94ac10b;hb=7689c8fe779e388f85d3122e77d990414f9097f3;hp=675e47ccb36f49328dc7c100c10d0f53e23f6443;hpb=f2698c930f26434a100e0b4c1e4f39291b55b4f9;p=pygdb.git diff --git a/WatchesFrame.py b/WatchesFrame.py index 675e47c..cfcd14a 100644 --- a/WatchesFrame.py +++ b/WatchesFrame.py @@ -96,6 +96,7 @@ class WatchesFrame (StatusFrame.StatusFrame): def fillConfiguration(self, conf): + iter = self.model.get_iter_first() while iter != None: expr, = self.model.get(iter, 0) @@ -111,7 +112,7 @@ class WatchesFrame (StatusFrame.StatusFrame): selection = self.tv.get_selection() model, paths = selection.get_selected_rows() - for path in paths: + for path in reversed(paths): iter = model.get_iter(path) model.remove(iter)