1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-09 06:17:58 +00:00

Another torrent deletion fix

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

View File

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