Chocobo1
33875aa70a
Mark singleton class as final
2023-07-05 03:32:54 +08:00
Chocobo1
213b6e316c
Don't emit superfluous signal
...
`Preferences::apply()` might emit superfluous changed signal even when the settings hasn't
changed (e.g. not dirty), this commit fixes it.
2023-07-05 03:32:53 +08:00
Chocobo1
ffc3d8d345
Don't update settings when it hasn't changed
...
So when a setting is the same as the default, it won't write an entry to config file on disk.
2023-07-05 03:32:53 +08:00
Vladimir Golovnev
80c637bf99
Always use the same limits when parse bencoded data
...
PR #19263 .
2023-07-02 11:37:37 +03:00
Chocobo1
80791e328d
Fix wrong behavior when reading text
...
Also add another 'file read error' status.
Closes #19254 .
PR #19262 .
2023-07-02 13:23:20 +08:00
Chocobo1
715a4f3eb6
Use move construct for large data
2023-07-01 16:28:15 +08:00
Chocobo1
8655e48336
Use move construct for shared pointers
2023-07-01 16:28:13 +08:00
Chocobo1
3c139ca333
Fix potential use-after-move
...
The evaluation order for function parameters is unspecified in C++.
https://stackoverflow.com/questions/2934904/order-of-evaluation-in-c-function-parameters
Fix up 1b2ff0f6f8f93c4e3d3aff38359b1b2037a13378.
2023-07-01 14:38:50 +08:00
Chocobo1
6680fdda18
Fix typos
2023-06-26 16:45:44 +08:00
Vladimir Golovnev
1c654d8f47
Immediately update torrent status on moving files
...
PR #19220 .
2023-06-25 12:45:58 +03:00
luzpaz
deec2ae1b1
Fix various typos
...
PR #19213 .
2023-06-24 16:04:04 +03:00
Chocobo1
dffb93a6aa
Merge pull request #19208 from Chocobo1/buffer
...
Avoid unnecessary memory allocation/relocation
2023-06-24 13:03:00 +08:00
Vladimir Golovnev
3b948b0130
Drop I2P support with libtorrent 1.2
...
PR #19207 .
Closes #19152 .
2023-06-23 16:24:34 +03:00
Chocobo1
b3d2ba7d07
Initialize regex only once
...
This code path is commonly used so let it initialize only once.
2023-06-23 14:49:22 +08:00
Chocobo1
03d3552ee0
Avoid unnecessary memory allocation/relocation
2023-06-23 14:49:22 +08:00
Chocobo1
1f2a6455b6
Merge pull request #19188 from Chocobo1/literalOperator
...
Rename literal operator
2023-06-19 12:45:20 +08:00
sledgehammer999
fc8c74989b
Bump to 4.6.0beta2
2023-06-18 21:27:12 +03:00
Chocobo1
e6d85a468b
Rename literal operator
...
Qt 6.4 introduced `QString operator""_s()` and the previous `""_qs` is
deprecated since Qt 6.8.
2023-06-18 03:32:44 +08:00
Chocobo1
f6b58f36e2
WebUI: set Cross Origin Opener Policy to same-origin
...
This separates browsing context for different origin sites and prevents
leaking data from it.
This header is only present when using built-in WebUI. Alternative WebUI
is not affected.
https://web.dev/why-coop-coep/#coop
PR #19157 .
2023-06-14 13:38:48 +08:00
Chocobo1
79ca2e145f
Don't read unlimited data from files
...
It now guards against reading infinite files such as `/dev/zero`.
And most readings are bound with a (lax) limit.
As a side effect, more checking are done when reading a file and
overall the reading procedure is more robust.
PR #19095 .
2023-06-14 13:38:19 +08:00
Vort
ff5d02bcf2
Make I2P session options configurable
...
PR #19079 .
Closes #18980 .
2023-06-06 08:35:40 +03:00
Vladimir Golovnev
a5e8af5070
Allow to assign priority to RSS download rule
...
PR #19000 .
2023-06-05 14:55:41 +03:00
Vladimir Golovnev
cf415dd7fe
Allow to disable confirmation of Pause/Resume All
...
PR #19067 .
Closes #18155 .
2023-06-04 08:57:14 +03:00
Chocobo1
62d96c068a
Remove SGML parser
...
This library is unmaintained, outdated and plugin authors are encouraged to use html.parser
from Python Standard Library instead.
https://docs.python.org/3/library/html.parser.html
PR #19068 .
2023-06-04 12:52:06 +08:00
xavier2k6
040c3c7ef8
Sync "expected lite" with upstream
...
PR #19049 .
2023-06-03 17:42:57 +03:00
Vladimir Golovnev
160af4feef
Show I2P peer addresses
...
PR #18845 .
2023-06-01 17:16:03 +03:00
sledgehammer999
ecc08dee09
Bump to 4.6.0beta1
2023-05-29 16:03:44 +03:00
Vladimir Golovnev
a59301712e
Avoid race condition when waking worker thread
...
PR #19005 .
2023-05-23 02:22:16 +03:00
Chocobo1
b406d669b3
Bump python version minimum requirement
...
PR #18996 .
2023-05-22 12:37:02 +08:00
Chocobo1
4ef8f39f23
Use python isolate mode
...
This (more or less) avoids user's environment variables tampering the
search process.
And also remove usages of `eval()` and `exec()`.
PR #18995 .
2023-05-21 14:04:44 +08:00
Vladimir Golovnev
c10f1f0ad2
Consider explicitly specified parameters when resolving optional ones
...
PR #18955 .
Closes #18951 .
2023-05-11 09:09:57 +03:00
Vladimir Golovnev
58ae98026b
Try to detect system wake-up event
...
PR #18934 .
Closes #17898 .
2023-05-10 15:02:15 +03:00
Chocobo1
32a55551fe
Merge pull request #18936 from Chocobo1/tidy
...
Code clean up
2023-05-08 13:11:11 +08:00
Vladimir Golovnev (Glassez)
bb959bda8c
Add helpers for suggesting torrent paths
2023-05-07 16:34:56 +03:00
Vladimir Golovnev (Glassez)
6fa53b5ed8
Override add torrent params in a more comprehensible way
2023-05-07 16:34:56 +03:00
Vladimir Golovnev (Glassez)
c777ed3299
Correctly use fallback value for "Add to top of queue" option
2023-05-07 16:34:56 +03:00
Vladimir Golovnev (Glassez)
905f141657
Revamp "Automated RSS downloader" dialog
2023-05-07 16:34:52 +03:00
Vladimir Golovnev (Glassez)
0a87bb368f
Extract "add torrent params" serialization code
2023-05-07 16:33:32 +03:00
Chocobo1
41be7e9bbe
Make function const
2023-05-07 19:41:55 +08:00
Chocobo1
179a61d75e
Add curly braces
2023-05-07 19:41:55 +08:00
Chocobo1
73134d5f4d
Initialize member variables
2023-05-07 16:30:56 +08:00
Chocobo1
29c05ed3e8
Use std::make_unique
2023-05-07 14:38:03 +08:00
Chocobo1
e7e5c38384
Remove superfluous header include
2023-05-06 16:48:49 +08:00
Chocobo1
9a00839a75
Simplify code
2023-05-06 16:35:13 +08:00
Chocobo1
79e85d01fa
Mark move functions as noexcept
2023-05-06 16:35:13 +08:00
Chocobo1
e408973ee6
Add pointer qualifications to auto
-typed variables
2023-05-06 16:35:13 +08:00
Chocobo1
8c9b6e2f2d
Use reference whenever possible
2023-05-06 16:35:13 +08:00
Chocobo1
2059825597
Don't use instance for accessing static functions
2023-05-06 16:35:12 +08:00
Chocobo1
e1be46820b
Remove redundant initialization
2023-05-06 16:35:12 +08:00
Chocobo1
8219b1f695
Use default constructor, destructor
2023-05-06 16:35:12 +08:00