Chocobo1
e1727c9a6a
Refactor GuiIconProvider::generateDifferentSizes()
6 years ago
Chocobo1
9df67b52b8
Add const to function signature
6 years ago
Chocobo1
73b5efbb23
Avoid potentially setting the wrong piece priorities
...
Updating file priorities is an async operation in libtorrent, when we
just updated it and immediately query it, we might get the
old/wrong values, so we rely on `updatedFilePrio` in this case.
6 years ago
Chocobo1
a68cdc5225
Refactor code
...
Make the code slightly easier to read.
6 years ago
Chocobo1
9bd8587c68
Add const to function parameters
6 years ago
Chocobo1
650f585bf3
Remove static keyword overuse
6 years ago
Chocobo1
a70219eea0
Move member variable initialization
...
Move the initialization from constructor body to member initializer
list.
Remove superfluous initializer.
6 years ago
Chocobo1
517fc39950
Remove unnecessary dynamic allocation
...
Also remove unneeded `if ()` conditional.
6 years ago
Chocobo1
56766dc08b
Avoid binding constant reference to returned object
...
In such cases, it makes no sense doing so.
6 years ago
Thomas Piccirello
13075e5099
Send all rechecks in one request
6 years ago
Thomas Piccirello
cdad0dc7d3
Add WebUI Force Reannounce option
6 years ago
Chocobo1
0217d5b4c0
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
6 years ago
Chocobo1
cb687ba3bd
Add options in AddNewTorrentDialog
...
The new checkboxes are: "Download in sequential order", "Download first
and last pieces first".
6 years ago
Chocobo1
1b406c97da
Revise dialog messages
...
Using critical dialog is a bit too strong as qbt didn't actually run
into something that fails, so downgrade to warning dialog.
6 years ago
Chocobo1
42eac2ee3c
Simplify code
...
This avoids "deferencing null pointer" warning from static analyzers.
6 years ago
Chocobo1
ec7dfee887
Fix typo
6 years ago
Chocobo1
e04aae686f
Cache more preference values
...
These values from Preference class are frequently used.
Also group related variables together.
6 years ago
Vladimir Golovnev (Glassez)
f7c252886f
Apply proxy settings on DownloadManager creation
6 years ago
Vladimir Golovnev (Glassez)
088273a767
Download favicon using appropriate protocol
...
Some trackers use UDP protocol but we can't download its favicon
using UDP. Just try to download it using HTTP.
6 years ago
Vladimir Golovnev (Glassez)
cd44ab2fc6
Improve torrent initialization
...
Don't post "torrent resumed" event when torrent starts in "resumed"
state.
Fix confusing names. Now "resumed torrent" means "unpaused torrent"
only. When we load previously added torrent it is called "restored
torrent".
6 years ago
Vladimir Golovnev (Glassez)
7ebd63a60f
Save resume data on torrent change events
...
Closes #9174 .
6 years ago
sledgehammer999
de8050701d
Revert email address changes in copyright notices
6 years ago
tjjh89017
670a8e27af
Add async io threads option to AdvancedSettings
6 years ago
Chocobo1
d61435e4bf
Allow save resume interval to be disabled
...
Also raise the allowable upper limit
6 years ago
Chocobo1
6a16fc1ca2
Prolong resume data save interval
6 years ago
Chocobo1
a0348c46fc
Remove unnecessary resources inclusion
6 years ago
thalieht
456270bbb1
Delete several unused #include
6 years ago
thalieht
eb508d67ef
Fix coding style
6 years ago
thalieht
6d4434ad66
Convert the names used in ui and c++ files from snake_case to camelCase
6 years ago
Chocobo1
2528c6e39a
Fix python version detection
...
Closes #9146 .
7 years ago
Chocobo1
8c32302377
Clear python cache conditionally
...
Clear the cache artifacts on plugin install and plugin uninstall events.
7 years ago
Vladimir Golovnev (Glassez)
d78414307e
Make TorrentInfo loading behavior uniform
7 years ago
Vladimir Golovnev (Glassez)
112a9bcfa2
Use new DownloadManager interface
7 years ago
Vladimir Golovnev (Glassez)
8d438e159c
Implement "Sequential downloading" feature
...
Closes #6835 .
7 years ago
Vladimir Golovnev (Glassez)
a9a6b74416
Implement DownloadRequest helper
7 years ago
Chocobo1
77b71e392e
Refactor function
...
In SearchPluginManager::updateNova(), omit removing __pycache__ folder and pyc
files, those files will be recreated anyway.
Add const to variables
7 years ago
Chocobo1
f951bf678d
Rename function
7 years ago
Chocobo1
5c50c5b24d
Cache SearchPluginManager::engineLocation() result
...
Also the folder is only created on first usage.
7 years ago
Chocobo1
361afb401b
Replace less-efficient QProcess::setEnvironment
...
Also small refactor
7 years ago
Chocobo1
ad5c88be3d
Simplify function
7 years ago
Chocobo1
6bf3f1d0b8
Add checkbox for recursive download dialog
...
Also group similar options together.
7 years ago
Chocobo1
78d7cc0570
Work around crash when procesing recursive download
...
The messagebox is modal and exec() it makes it generates a new local
event loop, however the new local event loop will continue to process
libtorrent events (in Session::readAlerts()), at the time exec()
returns, the original libt::alert pointers are lost and resume
processing alerts will cause the crash.
One solution is to make the messagebox use show() and avoid exec().
Closes #9086 .
7 years ago
Chocobo1
3e6c8a05dd
Reduce queries to python version
...
Instead of doing at least 2 queries for python infos, now requires only
1 query (in ideal condition), and the result is cached.
7 years ago
Chocobo1
51e82762c5
Move related functions to Utils::Python
7 years ago
Goshik
1daadfc4ec
Create non-existing path in setLocationAction()
...
When using qbittorrent-nox it is not always possible to manually create
the target path for torrent moving. This commit allows automatic path
creation. It also allows to display error messages in the
'Set location' window.
7 years ago
thalieht
d34ddb2e3c
Change file names and classes names to match them
7 years ago
hannsen
a162550d7f
Properly normalize version string before parsing it
...
This allows python scripts to be formatted in PEP 8 style.
7 years ago
Chocobo1
8be949fec3
Revise usage of BOOST_NO_CXX11_RVALUE_REFERENCES
...
Now the flag will be present when building with boost version <= 1.59.
Closes #8990 .
7 years ago
Thomas Piccirello
232f0f4b0b
Add WebUI support for Mac ⌘ (Command) key
...
The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is.
7 years ago
Thomas Piccirello
091ad6103e
Implement key functions in Class and refactor
7 years ago