mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
- Fix "Append .!qB extension" for torrents without metadata (Magnet Links)
This commit is contained in:
parent
b56dee2a92
commit
98561f9db9
1 changed files with 1 additions and 1 deletions
|
@ -1295,7 +1295,7 @@ void Bittorrent::setDefaultTempPath(QString temppath) {
|
||||||
|
|
||||||
#ifdef LIBTORRENT_0_15
|
#ifdef LIBTORRENT_0_15
|
||||||
void Bittorrent::appendqBextensionToTorrent(QTorrentHandle h, bool append) {
|
void Bittorrent::appendqBextensionToTorrent(QTorrentHandle h, bool append) {
|
||||||
if(!h.is_valid()) return;
|
if(!h.is_valid() || !h.has_metadata()) return;
|
||||||
std::vector<size_type> fp;
|
std::vector<size_type> fp;
|
||||||
h.file_progress(fp);
|
h.file_progress(fp);
|
||||||
for(int i=0; i<h.num_files(); ++i) {
|
for(int i=0; i<h.num_files(); ++i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue