Another torrent deletion fix

This commit is contained in:
Christophe Dumez 2010-11-14 19:11:52 +00:00
commit 1d795d85d2

View file

@ -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();