mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-15 01:00:17 +00:00
- finished GUI class cleanup
This commit is contained in:
parent
bd8ec01add
commit
58b5d4378d
@ -486,10 +486,13 @@ void GUI::displayDLListMenu(const QPoint& pos){
|
|||||||
if(has_pause && has_start && has_preview) break;
|
if(has_pause && has_start && has_preview) break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
myDLLlistMenu.addSeparator();
|
||||||
myDLLlistMenu.addAction(actionDelete);
|
myDLLlistMenu.addAction(actionDelete);
|
||||||
myDLLlistMenu.addAction(actionDelete_Permanently);
|
myDLLlistMenu.addAction(actionDelete_Permanently);
|
||||||
|
myDLLlistMenu.addSeparator();
|
||||||
myDLLlistMenu.addAction(actionSet_download_limit);
|
myDLLlistMenu.addAction(actionSet_download_limit);
|
||||||
myDLLlistMenu.addAction(actionSet_upload_limit);
|
myDLLlistMenu.addAction(actionSet_upload_limit);
|
||||||
|
myDLLlistMenu.addSeparator();
|
||||||
myDLLlistMenu.addAction(actionTorrent_Properties);
|
myDLLlistMenu.addAction(actionTorrent_Properties);
|
||||||
// Call menu
|
// Call menu
|
||||||
// XXX: why mapToGlobal() is not enough?
|
// XXX: why mapToGlobal() is not enough?
|
||||||
@ -1152,7 +1155,7 @@ void GUI::torrentAdded(QString path, torrent_handle& h, bool fastResume){
|
|||||||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||||
DLListModel->setData(DLListModel->index(row, HASH), QVariant(hash));
|
DLListModel->setData(DLListModel->index(row, HASH), QVariant(hash));
|
||||||
// Pause torrent if it was paused last time
|
// Pause torrent if it was paused last time
|
||||||
if(QFile::exists(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".paused")){
|
if(BTSession->isPaused(hash)) {
|
||||||
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/paused.png")), Qt::DecorationRole);
|
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(":/Icons/skin/paused.png")), Qt::DecorationRole);
|
||||||
setRowColor(row, "red");
|
setRowColor(row, "red");
|
||||||
}else{
|
}else{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user