Browse Source

Another torrent deletion fix

adaptive-webui-19844
Christophe Dumez 14 years ago
parent
commit
1d795d85d2
  1. 2
      src/qtlibtorrent/torrentmodel.cpp

2
src/qtlibtorrent/torrentmodel.cpp

@ -291,7 +291,7 @@ void TorrentModel::removeTorrent(const QString &hash)
{ {
const int row = torrentRow(hash); const int row = torrentRow(hash);
qDebug() << Q_FUNC_INFO << hash << row; qDebug() << Q_FUNC_INFO << hash << row;
if(row > 0) { if(row >= 0) {
beginRemoveTorrent(row); beginRemoveTorrent(row);
m_torrents.removeAt(row); m_torrents.removeAt(row);
endRemoveTorrent(); endRemoveTorrent();

Loading…
Cancel
Save