Chocobo1
365554d064
Use proper signed number type
...
This also suppress the compiler warning:
src/base/bittorrent/torrentimpl.cpp:228:36: warning: comparison of integer expressions of different signedness: ‘int’ and ‘const size_t’ {aka ‘const long unsigned int’} [-Wsign-compare]
3 years ago
Chocobo1
70d1cb86fd
Disable move constructor where it is sensible
3 years ago
FranciscoPombal
ccb7c0d579
Raise minimum libtorrent version to 1.2.14 (2.0.4)
...
- Also update vcpkg to latest commit: includes libtorrent 1.2.14,
Qt 5.15.2, and Qt 6.1.1
3 years ago
Andrei Stepanov
5157e4965a
Remove excess space
3 years ago
sledgehammer999
3ffd25f9e1
Bump to 4.4.0beta1
3 years ago
Vladimir Golovnev
37f227ae74
Provide v1 and v2 infohashes in UI ( #15097 )
3 years ago
HiFiPhile
f5315d9ba7
Add WebUI reverse proxy source IP resolution ( #15047 )
...
Co-authored-by: qix67
Co-authored-by: HiFiPhile <admin@hifiphile.com>
3 years ago
Vladimir Golovnev (Glassez)
124cc9621d
Delete LoadTorrentParams when load torrent failed
3 years ago
Vladimir Golovnev (Glassez)
3faa7226e7
Handle exception when torrent file cannot be exported
...
Both `lt::create_torrent` constructor and `lt::create_torrent::generate()`
can throw an exception so we need to handle it to prevent the app from crashing.
3 years ago
Vladimir Golovnev (Glassez)
6070b41c9b
Properly add torrent with new tags
...
First, an attempt is made to add new tags to the Session.
Closes #15105 .
3 years ago
Kacper Michajłow
ccb59fbad3
Suppress C4267 conversion warnings ( #13307 )
...
- warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data
Caused by mismatch between size_type of std and Qt containers. It is safe to cast to int as all of those containers hold low number of objects.
3 years ago
Vladimir Golovnev (Glassez)
6c66d02aff
Declare AbstractFileStorage destructor virtual
3 years ago
Vladimir Golovnev (Glassez)
97c7f3bc67
Raise minimum Qt version to 5.14
4 years ago
LoneDev
d335f263f3
Fix comment typo in algorithm.h ( #15030 )
4 years ago
Vladimir Golovnev (Glassez)
b6a35e9477
Don't log any error when "queue" file doesn't exist
4 years ago
Vladimir Golovnev (Glassez)
6aa8251b98
Provide correct error description in "upload mode"
4 years ago
zhuangzi926
2e8e2b04a1
Announce to all trackers if IP changed ( #15001 )
...
Closes #14545 .
4 years ago
Chocobo1
c64e433a69
Remove unused parameter
4 years ago
Chocobo1
e21f46d824
Avoid data duplication
4 years ago
Chocobo1
ef79546508
Add `connection_speed` to advanced settings
...
Now we follow libtorrent current default value 30.
Closes #6973 .
Also bump WebAPI version.
4 years ago
Vladimir Golovnev (Glassez)
2993fdb169
Improve "Watched folders" feature
...
Make "file system watcher" an application core component
and separate it from its presentation model.
4 years ago
Vladimir Golovnev (Glassez)
9565b695ef
Unify custom exceptions
4 years ago
Vladimir Golovnev (Glassez)
89cedd411e
Allow add torrents with relative save path
...
The relative save path will be resoloved against the default one.
4 years ago
An0n
ea3b897d5d
Bump file pool size ( #14966 )
4 years ago
sledgehammer999
2c47cfbe25
Add new languages
...
* Mongolian
* Persian
* Thai
4 years ago
Chocobo1
a82ca6adb2
Fix potential data race
...
This case could be considered benign however it could still be an
undefined behavior to the compiler, so remove it.
Ref:
https://hacks.mozilla.org/2021/04/eliminating-data-races-in-firefox-a-technical-report/
4 years ago
Chocobo1
05e3e46f5a
Throw the exact (same) exception
4 years ago
Vladimir Golovnev (Glassez)
383eaf44ac
Implement DBResumeDataStorage class
4 years ago
Chocobo1
bdf2f6c3e1
Initialize struct members by default
...
This is to suppress the following compilation warnings:
base/bittorrent/magneturi.cpp: In constructor ‘BitTorrent::MagnetUri::MagnetUri(const QString&)’:
base/bittorrent/magneturi.cpp:87:60: warning: missing initializer for member ‘BitTorrent::TrackerEntry::message’ [-Wmissing-field-initializers]
87 | m_trackers.append({QString::fromStdString(tracker)});
4 years ago
Chocobo1
fdc186c92f
Revise tag related implementations
...
Fix #12690 .
4 years ago
Vladimir Golovnev (Glassez)
75e0990eb3
Provide tracker peers count via TrackerEntry
...
Don't expose additional accessor in Torrent interface.
4 years ago
Vladimir Golovnev (Glassez)
62a6c725d6
Don't overwrite tracker message
...
Use one of the tracker endpoint messages.
4 years ago
Vladimir Golovnev (Glassez)
d4554c2e5c
Correctly handle "no enough disk space" error
...
If torrent failed to write, it stops downloading and goes to
"upload mode" instead of errored state so it just keeps seeding.
Now qBittorrent indicates this state as "errored" and allows
the user to manually bring the torrent out of this state.
4 years ago
Chocobo1
cb8d6a0939
Reorder peer flags
...
Now we group related flags nearby.
4 years ago
Chocobo1
e38128119c
Capitalize "peer flags" descriptions
...
And use a helper function to build the descriptions.
4 years ago
zhuangzi926
c9e2da5f53
Update dyndns register url
4 years ago
Chocobo1
53b7956968
Clean up code
...
and remove unused parameters/variables.
4 years ago
Chocobo1
a64bb1a990
Simplify natural sort classes interface
...
Now the comparison function/class should be constructed before usage.
This change also make it easier to plug in into various containers which
will require a compare function type (such as std::set).
4 years ago
Vladimir Golovnev (Glassez)
4a68df084e
Enclose strings in QLatin1String
4 years ago
Vladimir Golovnev (Glassez)
f8e7602d96
Correctly forward declare file_prio_alert
4 years ago
Vladimir Golovnev (Glassez)
1344b31535
Improve ResumeDataStorage
4 years ago
Chocobo1
8a087a876e
Clean up code
4 years ago
Vladimir Golovnev (Glassez)
cd6959b712
Save "resume data" once file priority is changed
4 years ago
Vladimir Golovnev (Glassez)
a93391e247
Drop QNetworkConfigurationManager usage
4 years ago
Vladimir Golovnev (Glassez)
a230228441
Don't compare bool with int
...
In Qt6 QHash::remove() returns bool to indicate operation status.
4 years ago
Vladimir Golovnev (Glassez)
09da6828b8
Use complete types in container declarations
...
Qt 6 disallows to use incomplete types in container declarations
in some cases, e.g. in parameters of signals/slots.
4 years ago
Vladimir Golovnev (Glassez)
35dedd3d83
Implement BencodeResumeDataStorage class
...
Implement ResumeDataStorage class as base for all "resume data" storages.
Implement BencodeResumeDataStorage class and put all existing logic of
"resume data" loading/saving there.
4 years ago
Vladimir Golovnev (Glassez)
1a9e97ee3b
Don't cause QHash relayout while using reference to its node
4 years ago
treysis
0189606445
Fix bad IPv6 address format for outgoingInterfaces
...
Fixes https://github.com/qbittorrent/qBittorrent/issues/12892#issuecomment-792292336
4 years ago
Vladimir Golovnev (Glassez)
764aabc459
Wrap "resume data" in LoadTorrentParams
4 years ago