| Summary: | Kget closes automatically when a download is marked as finished in the list | ||
|---|---|---|---|
| Product: | [Applications] kget | Reporter: | Rémy Greinhofer <remy.greinhofer> |
| Component: | general | Assignee: | KGet bugs <kget-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Rémy Greinhofer
2009-02-12 11:46:13 UTC
After a quick search in the SVN, I think the problem might come from the file Kget.cpp, in the function void TransferFinishedObserver::checkAndFinish().
There is a loop:
foreach(TransferGroup *transferGroup, KGet::m_transferTreeModel->transferGroups()) {
foreach(TransferHandler *transfer, transferGroup->handler()->transfers()) {
if(transfer->status() != Job::Finished) {
quitFlag = false;
}
}
}
I think in this loop, there should be an additional check to check whether the download was finished in a previous session or not.
SVN commit 956021 by lappelhans: Fix kget closing when all downloads are finished Patch by Nikhil Marathe... BUG:184127 CCMAIL:nsm.nikhil@gmail.com M +6 -0 job.cpp M +5 -0 job.h M +2 -0 transfer.cpp M +20 -0 transferhandler.cpp M +1 -0 transferhandler.h WebSVN link: http://websvn.kde.org/?view=rev&revision=956021 |