diff --git a/src/FinishedTorrents.cpp b/src/FinishedTorrents.cpp index 65a4f9067..47cfb6de9 100644 --- a/src/FinishedTorrents.cpp +++ b/src/FinishedTorrents.cpp @@ -247,7 +247,7 @@ void FinishedTorrents::updateFinishedList(){ if (reponse == QMessageBox::Yes) { qDebug("Info: a torrent was moved from finished to download tab"); deleteTorrent(hash); - BTSession->setFinishedTorrent(hash); + BTSession->setUnfinishedTorrent(hash); emit torrentMovedFromFinishedList(hash); } else if (reponse == QMessageBox::No) { diff --git a/src/Icons/splash.png b/src/Icons/splash.png index 6d52f6088..be04af5da 100644 Binary files a/src/Icons/splash.png and b/src/Icons/splash.png differ diff --git a/src/qtorrenthandle.cpp b/src/qtorrenthandle.cpp index edd3b8aef..7b89e444e 100644 --- a/src/qtorrenthandle.cpp +++ b/src/qtorrenthandle.cpp @@ -57,6 +57,8 @@ float QTorrentHandle::progress() const { Q_ASSERT(h.is_valid()); if(!h.status().total_wanted) return 0.; + if (h.status().total_wanted_done == h.status().total_wanted) + return 1.; float progress = (float)h.status().total_wanted_done/(float)h.status().total_wanted; Q_ASSERT(progress >= 0. && progress <= 1.); return progress; diff --git a/src/src.pro b/src/src.pro index 9096c479c..6fc4d2c17 100644 --- a/src/src.pro +++ b/src/src.pro @@ -11,10 +11,10 @@ TARGET = qbittorrent CONFIG += qt thread x11 network # Update this VERSION for each release -DEFINES += VERSION=\\\"v1.1.1\\\" +DEFINES += VERSION=\\\"v1.1.2\\\" DEFINES += VERSION_MAJOR=1 DEFINES += VERSION_MINOR=1 -DEFINES += VERSION_BUGFIX=1 +DEFINES += VERSION_BUGFIX=2 QMAKE_LFLAGS += -Wl,--as-needed