Chocobo1
1e029da5ad
Fix search icon placement when using RTL languages
6 years ago
Chocobo1
ed6bb0efdc
Replace QList by QVector for tracker related operations
6 years ago
Chocobo1
802af70e2f
Fix typos
6 years ago
Chocobo1
cb4c53c848
Follow the type used in libtorrent
6 years ago
Chocobo1
e92209475e
Use range-based for loops
6 years ago
Chocobo1
10e1c35998
Avoid unnecessary double lookup
6 years ago
Chocobo1
c75500670d
Use forwarding reference when passing function objects
...
So instead of passing every function objects by value (a copy is made), now function objects
will be handled properly by reference (for lvalues) or by value (for rvalues).
6 years ago
Chocobo1
6738cdd715
Constify exception references
6 years ago
Chocobo1
e288de7ec1
Forward declare as much as possible
6 years ago
Chocobo1
401bdbf3d9
Remove unused functions
6 years ago
Chocobo1
ff707ea5af
Change splitToViews() return type to QVector
6 years ago
Chocobo1
459cdf6071
Fix assertion fail
...
When fileSize == 0, the second index could be smaller than the first index,
thus trigger the assert check in IndexInterval constructor.
Closes #10611 .
6 years ago
Evgeny Lensky
62c72091ce
Change "Add new torrent" dialog to horizontal layout
6 years ago
Chocobo1
c6f3da1097
Improve removeIf() to support set types
...
We can now replace QMutable*Iterator by removeIf() which usage is more consistent with other
algorithm functions.
6 years ago
Chocobo1
5aaf040300
Remove libtorrentfwd.h
6 years ago
Chocobo1
3955eef50d
Change to `lt` namespace
...
Quoting from libtorrent doc:
> In the future, libtorrent will be the alias and lt the namespace name.
6 years ago
Chocobo1
4b263f057d
Use newer libtorrent API
...
This commit covers session.cpp only.
6 years ago
Chocobo1
677a419f0b
Use upstream defined namespace
...
`lt` namespace is defined since libtorrent 1.1.6 and our master branch requires >= 1.1.10,
so there is no need to add #if condition for it.
6 years ago
jerrymakesjelly
4b9f0a87cd
Change the speed unit from Bytes/s to KiB/s
...
Updated the adding torrent dialogs in WebUI. Closes #10017 .
6 years ago
Chocobo1
bd8d70bf60
Refactor HTTP query parsing
6 years ago
Chocobo1
69d29af097
Fix '+' char not decoded to space correctly
...
Closes #10606 .
6 years ago
Matan Bareket
bd2d636bb5
Download RSS enclosure element if no proper MIME type is found
...
In the case where an RSS feed doesn't have the "enclosure" element
with type "application/x-bittorrent", fallback to the last enclosure
element which has no "type" attribute.
6 years ago
Ekin Dursun
c0c2fe247b
Don't turn screen blank when closed to system tray
...
Closes #9240 and possibly #9121 , as @zeule suggested here: https://github.com/qbittorrent/qBittorrent/issues/9240#issuecomment-408025722 .
6 years ago
Chocobo1
ae793b7395
Use upstream defined namespace alias
6 years ago
Chocobo1
56434fc8b9
Replace obsoleted QDateTime::fromTime_t()
6 years ago
Chocobo1
3f962ba336
Fix displaying invalid creation date
...
The bug is only observed when using libtorrent 1.2.
6 years ago
Chocobo1
3f10ac55a3
Migrate to update-to-date libtorrent functions
6 years ago
Cory
d49379789a
Register protocol handler in WebUI for magnet links
6 years ago
Chocobo1
8aa8b19f37
Fix "Create subfolder" option is not working in WebUI
...
Closes #10392 .
6 years ago
Chocobo1
aaed5f7fe0
Remove unused headers
6 years ago
Chocobo1
375de4f8a6
Replace QMap with QHash when sensible
6 years ago
Chocobo1
44e4a5b13a
Avoid performance penalty from type erasure
...
On average the affected code path is 0.1% faster and the result binary
is 10 KB smaller.
6 years ago
dzmat
7de0f9abed
Change number of time axis divisions from 5 to 6 for convenience
6 years ago
dzmat
0af17bf7e9
Add 12 hour and 24 hour speed graphs
6 years ago
Chocobo1
49b57904f9
Use a random number for WebUI cache busting
...
Also fetch qbt version info via WebAPI properly.
6 years ago
Chocobo1
d022457e0c
Use force refresh on WebUI logout
...
Regardless of the cache header settings, the logout action should never be
allowed to load from cache.
6 years ago
Chocobo1
6e1e7a45a1
Align WebUI login button to the right
6 years ago
Thomas Piccirello
238ca03936
Set title attribute for all WebUI table cells
...
Except the Progress Bar
6 years ago
Chocobo1
a2a669572c
Use QSet for tracking server connections
...
We don't need to maintain order between connections so QSet would be more suitable.
6 years ago
Chocobo1
a35b6cc8dd
Remove closed connections immediately
...
Previously it relied on a timer to drop dead connections but that proved to
be too slow when there is an incoming burst of connections.
Fixes #10487 .
6 years ago
Chocobo1
41773a5465
Fix unsafe type narrowing
...
Appending the warning below:
qBittorrent\src\base/utils/version.h(176): warning C4267: 'argument': conversion from 'size_t' to 'int', possible loss of data
qBittorrent\src\base/utils/version.h(185): note: see reference to function template instantiation 'std::array<T,2> Utils::Version<T,2,2>::parseList<StringsList>(const StringsList &)' being compiled
with
[
T=unsigned short,
StringsList=QList<QByteArray>
]
6 years ago
CzBiX
d254a98662
Always use index.html as default page
6 years ago
thalieht
2f3b7642c2
Show user friendly size in error
6 years ago
thalieht
25102b9c5d
Increase the download size limit to 100 MiB
6 years ago
Chocobo1
4bf4313862
Initialize class variable via constructor
6 years ago
Chocobo1
94aeeed95f
Work around the crash occurred in QTimer
...
See Qt commit:
https://code.qt.io/cgit/qt/qtbase.git/commit/src/corelib/kernel/qtimer.cpp?id=a623fe8d2a60ff333d5779f877e3b20f0e141ff1
Fixes #9985 .
6 years ago
Chocobo1
d86a984e25
Correctly handle '+' sign in x-www-form-urlencoded data
...
Fixes #10451 .
6 years ago
thalieht
371a090cec
Rename "Prefer encryption" to "Allow encryption"
...
Because it actually prefers non-encryption but allows it if requested.
6 years ago
Chocobo1
1ea61db1fb
Disable downloading tracker favicons by default
...
Workaround for a crash in Qt networking library, source:
https://github.com/qbittorrent/qBittorrent/issues/9667#issuecomment-464445025
Closes #9667 .
6 years ago
Chocobo1
7e99ce6d7f
Document current WebUI browser compatibility
6 years ago