From 1d795d85d21e34eb3055d8083b97a5656e02a638 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sun, 14 Nov 2010 19:11:52 +0000 Subject: [PATCH] Another torrent deletion fix --- src/qtlibtorrent/torrentmodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qtlibtorrent/torrentmodel.cpp b/src/qtlibtorrent/torrentmodel.cpp index 1c15733ff..788cdb59a 100644 --- a/src/qtlibtorrent/torrentmodel.cpp +++ b/src/qtlibtorrent/torrentmodel.cpp @@ -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();