From c536f24d5593bb816c8a0e142325bfbe3d74c45f Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 1 Nov 2008 21:45:30 +0000 Subject: [PATCH] - Changed default icon from connecting to stalled since connecting state no longer exists --- src/downloadingTorrents.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/downloadingTorrents.cpp b/src/downloadingTorrents.cpp index 42d4f29bb..4dfd475ae 100644 --- a/src/downloadingTorrents.cpp +++ b/src/downloadingTorrents.cpp @@ -172,7 +172,7 @@ void DownloadingTorrents::showPropertiesFromHash(QString hash) { void DownloadingTorrents::resumeTorrent(QString hash){ int row = getRowFromHash(hash); Q_ASSERT(row != -1); - DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/connecting.png"))), Qt::DecorationRole); + DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole); setRowColor(row, QString::fromUtf8("grey")); } @@ -598,7 +598,7 @@ void DownloadingTorrents::addTorrent(QString hash) { setRowColor(row, QString::fromUtf8("red")); }else{ DLListModel->setData(DLListModel->index(row, PROGRESS), QVariant((double)h.progress())); - DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/connecting.png"))), Qt::DecorationRole); + DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole); setRowColor(row, QString::fromUtf8("grey")); } ++nbTorrents; @@ -804,7 +804,7 @@ void DownloadingTorrents::torrentAdded(QTorrentHandle& h) { DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/paused.png"))), Qt::DecorationRole); setRowColor(row, QString::fromUtf8("red")); }else{ - DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/connecting.png"))), Qt::DecorationRole); + DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/stalled.png"))), Qt::DecorationRole); setRowColor(row, QString::fromUtf8("grey")); } ++nbTorrents;