- Fixed double click in download list

This commit is contained in:
Christophe Dumez 2007-04-11 20:54:02 +00:00
commit d0a766d49a
3 changed files with 17 additions and 2 deletions

View file

@ -1,3 +1,6 @@
* Unknown - Christophe Dumez <chris@qbittorrent.org> - v0.9.3
- BUGFIX: Fixed pause toggle on double-click in download
* Tue Apr 10 2007 - Christophe Dumez <chris@qbittorrent.org> - v0.9.2 * Tue Apr 10 2007 - Christophe Dumez <chris@qbittorrent.org> - v0.9.2
- BUGFIX: Window can now stay maximized on exit - BUGFIX: Window can now stay maximized on exit
- BUGFIX: Use PKGCONFIG again for configuring libtorrent - BUGFIX: Use PKGCONFIG again for configuring libtorrent

View file

@ -346,8 +346,20 @@ void GUI::togglePausedState(const QModelIndex& index){
QString fileHash = DLListModel->data(DLListModel->index(row, HASH)).toString(); QString fileHash = DLListModel->data(DLListModel->index(row, HASH)).toString();
if(BTSession.isPaused(fileHash)){ if(BTSession.isPaused(fileHash)){
BTSession.resumeTorrent(fileHash); BTSession.resumeTorrent(fileHash);
DLListModel->setData(DLListModel->index(row, STATUS), QVariant(tr("Connecting...")));
setInfoBar(tr("'%1' resumed.", "e.g: xxx.avi resumed.").arg(QString(BTSession.getTorrentHandle(fileHash).name().c_str())));
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/connecting.png")), Qt::DecorationRole);
setRowColor(row, "grey");
}else{ }else{
BTSession.pauseTorrent(fileHash); BTSession.pauseTorrent(fileHash);
DLListModel->setData(DLListModel->index(row, DLSPEED), QVariant((double)0.0));
DLListModel->setData(DLListModel->index(row, UPSPEED), QVariant((double)0.0));
DLListModel->setData(DLListModel->index(row, STATUS), QVariant(tr("Paused")));
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
setInfoBar(tr("'%1' paused.", "xxx.avi paused.").arg(QString(BTSession.getTorrentHandle(fileHash).name().c_str())));
DLListModel->setData(DLListModel->index(row, NAME), QIcon(":/Icons/skin/paused.png"), Qt::DecorationRole);
DLListModel->setData(DLListModel->index(row, SEEDSLEECH), QVariant("0/0"));
setRowColor(row, "red");
} }
} }

View file

@ -11,10 +11,10 @@ TARGET = qbittorrent
CONFIG += qt thread x11 CONFIG += qt thread x11
# Update this VERSION for each release # Update this VERSION for each release
DEFINES += VERSION=\\\"v0.9.2\\\" DEFINES += VERSION=\\\"v0.9.3rc1\\\"
DEFINES += VERSION_MAJOR=0 DEFINES += VERSION_MAJOR=0
DEFINES += VERSION_MINOR=9 DEFINES += VERSION_MINOR=9
DEFINES += VERSION_BUGFIX=2 DEFINES += VERSION_BUGFIX=3
contains(DEBUG_MODE, 1){ contains(DEBUG_MODE, 1){
CONFIG += debug CONFIG += debug