an0n666
8423f43209
Do not list not contacted trackers as error
5 years ago
Chocobo1
45c357dfe2
Include resume folder path in exception message
...
The message in RuntimeError exception will be displayed to the users and
users would be clueless if we don't show the path.
5 years ago
Chocobo1
6eb190c373
Expose WebUI ban duration to users
5 years ago
Chocobo1
ec61ef5145
Fix coding inconsistencies in preferences.html
...
1. Format table tags properly
2. Add a proper label tag
3. Don't use abbreviation for seconds, we use full name everywhere else
5 years ago
Chocobo1
4f7b799732
Use QDeadlineTimer for tracking WebUI banned duration
...
It simplifies our code and the new timer is monotonic.
5 years ago
Vladimir Golovnev (Glassez)
3762514662
Don't access download handler after it's finished
5 years ago
Chocobo1
45bd79ee74
Close document properly after writing
...
Closing document explicitly is recommended by MDN:
https://developer.mozilla.org/en-US/docs/Web/API/Document/write
5 years ago
Chocobo1
f88d6b2e55
Expose WebUI ban counter to users
5 years ago
Tester798
58711cbe7e
Fix portable mode
...
Try to fix portable mode bug. Closes #11706 , #11178 , #7765 .
5 years ago
an0n666
41d8585932
Keep legacy default for random port
5 years ago
Nick Korotysh
1e59dcdb6c
Inherit text color for filter list elements
...
Filter list (left side panel) in WebUI is implemented using <a> tags,
CSS defines default style for all <a> elements, and specific style for
filter list elements. Default style for <a> elements sets color, and
this color also used in list. This is looks not so well. So lets just
inherit text color from parent element, and as so as it is not set, so
default text color will be used.
This makes filter list looks like other UI elemets, making all UI more
consistent (like in desktop app).
5 years ago
Chocobo1
5de75eff05
Unify singleton pattern in Profile class
...
1. Use unified function names `initInstance()` and `freeInstance()` and
make them public.
2. Add `freeInstance()` to avoid noise from memory leak detectors.
3. Let `instance()`return a pointer directly to avoid unnecessary
indirections when invoking functions.
5 years ago
Vladimir Golovnev (Glassez)
0c6c65f6f8
Keep legacy defaults for existing users
5 years ago
Vladimir Golovnev (Glassez)
86c95db91d
Perform settings upgrade for existing user only
5 years ago
Vladimir Golovnev (Glassez)
8bb34482ea
Handle HTTP redirections manually
...
Qt doesn't support Magnet protocol so we need to handle all redirections
manually to allow redirections to Magnet URIs.
5 years ago
Nick Korotysh
536580ca6b
Use SVG image for WebUI favicon
...
This will allow browsers to get high quality icon with required
resolution instead of resizing some small raster image.
Browsers can have even more benefit from it. For example, Firefox uses
high resolution icon to display it in "Top Sites" instead of page
preview.
Nothing changes for browsers which doesn't support SVG favicons, older
PNG icon will be used in such case.
5 years ago
Chocobo1
baa13c044a
Drop python2 support
...
Closes #11811 .
5 years ago
Chocobo1
a6cdba17f0
Fix singleton class ownership
...
We shouldn't allow Qt parent ownership in here.
5 years ago
NotTsunami
6748e8d787
Remove redundant null checks
...
Attempting to delete a null pointer is a noop in C++.
Closes #2864 .
[1] https://isocpp.org/wiki/faq/freestore-mgmt#delete-handles-null
5 years ago
Chocobo1
b2ab6c1858
Let ReverseResolution always return/emit a result
5 years ago
Chocobo1
ff31bb86bc
Speed up lookup time
...
By adding another variable we can get O(1) lookup time instead of O(n).
Fix up 5f415c292d
.
5 years ago
Chocobo1
a2ebd77eac
Manually abort lookup on class destruction
...
Some lookup might take longer so instead of waiting them, we abort them
manually.
5 years ago
Chocobo1
86e3d0d816
Improve ReverseResolution class
...
* Use QHostAddress type for IP
* Avoid double lookup
* Use larger cache size
5 years ago
thalieht
5f415c292d
Show any multiple connections from the same IP in peer list
...
The uniqueness of peers is now determined by their
IP, port and connection type (uTP etc.) instead of just their IP
5 years ago
Chocobo1
5905c085c6
Use systematic approach to generate hash
...
The basic idea is to hash each class member and then mix them with xor
operation.
However the `seed` must be handled with care, it should only be
introduced once when mixing the hashes of each class member, otherwise
under some circumstances the `seed` might xor with itself and thus break
the intended effect.
5 years ago
Chocobo1
1740f968df
Revise qHash function
...
Instead of xor and narrowing the integers ourselves, now we let qHash()
from Qt do the job properly.
5 years ago
Chocobo1
2b4490d8a7
Use faster hash function
...
qHash(QString) will need to hash/loop through all the data while the new
code will only need one memcpy() and a few bit manipulations.
5 years ago
Vladimir Golovnev (Glassez)
666e733a4a
Track settings changed event in TransferListModel
5 years ago
Vladimir Golovnev (Glassez)
099943ea3c
Fix hide zero values
5 years ago
Sakib-Abrar
1768570bf9
Show "∞" instead of " -1" in Preferences
5 years ago
Vladimir Golovnev (Glassez)
f2285e1b63
Redesign torrent startup handling
5 years ago
NotTsunami
b21ed0063b
CMake: Fix WebUI checks
...
When the CMake system was last revamped, the configure variable was
changed from WEBUI to DISABLE_WEBUI, but we are still checking
against WEBUI. This behavior was changed in fa770871e9
5 years ago
Prince Gupta
c9e162cf8a
Reorganize UI theme selection
5 years ago
Chocobo1
3fce1db2eb
Migrate away from deprecated settings
...
Libtorrent has deprecated `upnp_ignore_nonrouters` in
https://github.com/arvidn/libtorrent/pull/4251
5 years ago
FranciscoPombal
df2fbb1edc
Bump Web API version
5 years ago
FranciscoPombal
f4742a98c5
Add stalled filters to GUI and Web API/UI
...
`/api/v2/torrents/info` can now take the following new values for the`filter` parameter: `stalled`, `stalled_uploading` and `stalled_downloading`.
Requires Web API version bump.
Closes #11787
5 years ago
NotTsunami
82047104fc
WebUI: Use correct operators in logical expressions
...
As suggested in https://github.com/qbittorrent/qBittorrent/pull/11825#discussion_r365557626
5 years ago
FranciscoPombal
ed96a07a75
Add piece_extent_affinity to AdvancedSettings
...
Expose option in WebUI settings and WebAPI.
Requires WebAPI version bump.
Closes #11436 .
5 years ago
Denis
a7eb792372
WebUI: Fix first row renaming in files tab
...
Ids started from zero and first row converts to false.
Closes #11826 .
5 years ago
Vladimir Golovnev (Glassez)
118debd6bf
Fix Transfer list sorting
5 years ago
Chocobo1
396660b031
Fix missing string
5 years ago
Chocobo1
2e4584578b
Bump python version for new installation
5 years ago
Chocobo1
029795bc19
Bump copyright year
5 years ago
An0n
bf32e90c40
Change placement of stop tracker timeout
5 years ago
an0n666
3f223c3a45
Expose stop_tracker_timeout in advanced settings
5 years ago
Chocobo1
c556b20018
Remove unused variable
5 years ago
Chocobo1
c34883f9af
Add explicit semicolon
5 years ago
Chocobo1
0577cf588c
Remove duplicate line
5 years ago
sledgehammer999
02a027144b
Tracker is errored only if all local endpoints fail
...
Closes #11691
5 years ago
thalieht
c5177eae9f
Allow double-click in preview dialog
5 years ago