OSDN Git Service

kget: fix infinite notification when all tasks finish
authorIvailo Monev <xakepa10@gmail.com>
Thu, 12 Feb 2015 02:55:37 +0000 (02:55 +0000)
committerIvailo Monev <xakepa10@gmail.com>
Thu, 12 Feb 2015 02:55:37 +0000 (02:55 +0000)
commit8a70a057ef4855684b530cc9fec096e837bc68ab
treed9ea7feee456c81803ccdbe9a4a10c65ddeb232f
parentd43c859d6d2a1d3330d48ceaf8d9b388d01fb7e0
kget: fix infinite notification when all tasks finish

this happens because transfersChangedEvent() is executed too often,
as a workaround asign a variable that is changed just before the
notifications is emmited and reset on transfer add/remove. I'm not
sure if it has to be reset in the group actions so that may break
the notification in some cases, in any case KGet is far less
annoying now
kget/core/filedeleter.cpp
kget/core/kget.cpp
kget/core/kget.h