diff --git a/ktorrent/tools/queuemanagermodel.cpp b/ktorrent/tools/queuemanagermodel.cpp --- a/ktorrent/tools/queuemanagermodel.cpp +++ b/ktorrent/tools/queuemanagermodel.cpp @@ -137,6 +137,19 @@ { disconnect(tc, SIGNAL(statusChanged(bt::TorrentInterface*)), this, SLOT(onTorrentStatusChanged(bt::TorrentInterface*))); + int r = 0; + + foreach (const Item& i, queue) + { + if (tc == i.tc) + { + queue.removeAt(r); + removeRow(r); + break; + } + r++; + } + } void QueueManagerModel::onTorrentStatusChanged(bt::TorrentInterface* tc)