mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-17 22:18:05 -06:00
- Force recheck after renaming files
This commit is contained in:
@@ -1028,6 +1028,8 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr
|
|||||||
QString path = files_path.at(i);
|
QString path = files_path.at(i);
|
||||||
h.rename_file(i, path);
|
h.rename_file(i, path);
|
||||||
}
|
}
|
||||||
|
// Force recheck
|
||||||
|
h.force_recheck();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
QString label = TorrentTempData::getLabel(hash);
|
QString label = TorrentTempData::getLabel(hash);
|
||||||
|
|||||||
@@ -578,6 +578,8 @@ void PropertiesWidget::renameSelectedFile() {
|
|||||||
}
|
}
|
||||||
qDebug("Renaming %s to %s", old_name.toLocal8Bit().data(), new_name.toLocal8Bit().data());
|
qDebug("Renaming %s to %s", old_name.toLocal8Bit().data(), new_name.toLocal8Bit().data());
|
||||||
h.rename_file(file_index, new_name);
|
h.rename_file(file_index, new_name);
|
||||||
|
// Force recheck
|
||||||
|
h.force_recheck();
|
||||||
// Rename if torrent files model too
|
// Rename if torrent files model too
|
||||||
if(new_name_last.endsWith(".!qB"))
|
if(new_name_last.endsWith(".!qB"))
|
||||||
new_name_last.chop(4);
|
new_name_last.chop(4);
|
||||||
@@ -621,6 +623,8 @@ void PropertiesWidget::renameSelectedFile() {
|
|||||||
h.rename_file(i, new_name);
|
h.rename_file(i, new_name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Force recheck
|
||||||
|
h.force_recheck();
|
||||||
// Rename folder in torrent files model too
|
// Rename folder in torrent files model too
|
||||||
PropListModel->setData(index, new_name_last);
|
PropListModel->setData(index, new_name_last);
|
||||||
// Remove old folder
|
// Remove old folder
|
||||||
|
|||||||
Reference in New Issue
Block a user