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

Loading…
Cancel
Save