browse: do not auto-delete tasks
commit139df119ae7cda67635b73bddd0fb104518e3dc6
authorDavid Aguilar <davvid@gmail.com>
Mon, 17 Aug 2015 19:29:18 +0000 (17 12:29 -0700)
committerDavid Aguilar <davvid@gmail.com>
Mon, 17 Aug 2015 19:29:20 +0000 (17 12:29 -0700)
tree7ce16dd646f61b34b1d252d5659ce1274ed45fee
parente84d8eddfe56e6041626fee12baaf97a8b1fd6eb
browse: do not auto-delete tasks

QThreadPool automatically deletes tasks when setAutoDelete is True and
QThreadPool::run() is called.

This causes crashes on some versions of PyQt because Python and Qt are
both trying to free the same task.

Tell Qt to not delete the tasks so that Python's garbage collector can
take care of it.

Signed-off-by: David Aguilar <davvid@gmail.com>
cola/models/browse.py