[gtg-refactor] Crash when moving multiple tasks to be subtasks of another
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
GTG |
Fix Released
|
Critical
|
Luca Invernizzi |
Bug Description
This is a regression on the gtg-refactor branch. Steps to reproduce are:
1. Launch ./scripts/debug.sh
2. Expand the subtasks under 'Getting started with GTG'
3. Select all the tasks titled "Learn how to..."
4. Drag them onto 'Reporting bugs', which should make them sub-tasks of that, but doesn't.
In the console I see this output printed:
Traceback (most recent call last):
File "/home/
model_
NameError: global name 'model_filter' is not defined
/home/bryce/
gtk.main()
Changed in gtg: | |
importance: | High → Critical |
Changed in gtg: | |
status: | New → Confirmed |
Changed in gtg: | |
milestone: | 0.3 → 0.2.9 |
Changed in gtg: | |
status: | Fix Committed → Fix Released |
Commenting out the three lines below makes it no longer crash, but of course also makes the tasks not become subtasks. But judging from some of the surrounding code, model_filter doesn't work yet.
# Get dragged iter as a TaskTreeModel iter data.split( ',')
drag_ iter = model.get_ iter_from_ string( iter)
drag_ iter_filter =\
model. convert_ iter_to_ child_iter( None, drag_iter) convert_ iter_to_ child_iter( drag_iter_ filter) model.move_ task(par_ iter_tasktree, drag_iter_tasktree)
iters = selection.
for iter in iters:
# drag_iter_tasktree =\
# model_filter.
# tasktree_