mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-13 08:43:08 -07:00
- Improved debug output
- code clean up - Moved some bittorrent code from GUI class to Bittorrent one
This commit is contained in:
parent
3cb0612cc6
commit
dbc084dd66
3 changed files with 11 additions and 9 deletions
|
@ -675,7 +675,7 @@ void GUI::restoreInDownloadList(torrent_handle h){
|
|||
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
|
||||
DLListModel->setData(DLListModel->index(row, HASH), QVariant(hash));
|
||||
// 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);
|
||||
setRowColor(row, "red");
|
||||
}else{
|
||||
|
@ -898,13 +898,9 @@ void GUI::closeEvent(QCloseEvent *e){
|
|||
// Hide tray icon
|
||||
myTrayIcon->hide();
|
||||
}
|
||||
// Save DHT entry
|
||||
BTSession->saveDHTEntry();
|
||||
// Save window size, columns size
|
||||
writeSettings();
|
||||
saveColWidthDLList();
|
||||
// Create fast resume data
|
||||
BTSession->saveFastResumeData();
|
||||
// Accept exit
|
||||
e->accept();
|
||||
qApp->exit();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue