Chocobo1
a7b82ebcb5
Cache more preference values
...
These values from Preference class are frequently used.
Also group related variables together.
2018-08-12 11:08:06 +03:00
Eugene Shalygin
f8598b010d
Use proper include files in the QtSingleApplication find module.
...
Look for qtsinglecoreapplication.h when Qt5Widgets module was not found,
and qtsingleapplication.h otherwise. Fixes #9196 .
This also removes Qt4 support from the QtSingleApplication find module.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
93779bcc4b
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.
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
938f5b9dd9
Apply proxy settings on DownloadManager creation
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
3b4d9f49d5
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".
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
171c93af50
Save resume data on torrent change events
...
Closes #9174 .
2018-08-12 11:08:06 +03:00
sledgehammer999
6f81e40106
Revert email address changes in copyright notices
2018-08-12 11:08:06 +03:00
tjjh89017
e19b5cb2ce
Add async io threads option to AdvancedSettings
2018-08-12 11:08:06 +03:00
Chocobo1
2c69faca58
Allow save resume interval to be disabled
...
Also raise the allowable upper limit
2018-08-12 11:08:06 +03:00
Chocobo1
9272151d0a
Prolong resume data save interval
2018-08-12 11:08:06 +03:00
Chocobo1
d45ebf5a43
Remove unnecessary resources inclusion
2018-08-12 11:08:06 +03:00
thalieht
8074be7644
Delete several unused #include
2018-08-12 11:08:06 +03:00
thalieht
c99ac99a99
Fix coding style
2018-08-12 11:08:06 +03:00
thalieht
976e2450ec
Convert the names used in ui and c++ files from snake_case to camelCase
2018-08-12 11:08:06 +03:00
Chocobo1
7e4db8fafd
Fix python version detection
...
Closes #9146 .
2018-08-12 11:08:06 +03:00
Chocobo1
115a409d92
Clear python cache conditionally
...
Clear the cache artifacts on plugin install and plugin uninstall events.
2018-08-12 11:08:06 +03:00
Chocobo1
c203ab3d16
Refactor function
...
In SearchPluginManager::updateNova(), omit removing __pycache__ folder and pyc
files, those files will be recreated anyway.
Add const to variables
2018-08-12 11:08:06 +03:00
Chocobo1
5dff96496d
Rename function
2018-08-12 11:08:06 +03:00
Chocobo1
f813935011
Cache SearchPluginManager::engineLocation() result
...
Also the folder is only created on first usage.
2018-08-12 11:08:06 +03:00
Chocobo1
2be719449f
Replace less-efficient QProcess::setEnvironment
...
Also small refactor
2018-08-12 11:08:06 +03:00
Chocobo1
2094c870d5
Simplify function
2018-08-12 11:08:06 +03:00
Chocobo1
4fe93ae8b8
Add checkbox for recursive download dialog
...
Also group similar options together.
2018-08-12 11:08:06 +03:00
Chocobo1
fff1103cf4
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 .
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
8cede43a45
Make TorrentInfo loading behavior uniform
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
9b1fa3a5af
Use new DownloadManager interface
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
409e73c074
Implement "Sequential downloading" feature
...
Closes #6835 .
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
c893729d62
Implement DownloadRequest helper
2018-08-12 11:08:06 +03:00
Chocobo1
945466968c
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.
2018-08-12 11:08:06 +03:00
Chocobo1
54f080b755
Move related functions to Utils::Python
2018-08-12 11:08:06 +03:00
Goshik
bfad14d552
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.
2018-08-12 11:08:06 +03:00
Chocobo1
2972e1596d
Move optimization flags
...
Those flags aren't strictly required when compiling but they are
recommended to be on.
2018-08-12 11:08:06 +03:00
Chocobo1
987d2aae88
Turn on Control Flow Guard for MSVC builds
...
The performance impact should be negligible according to the
documentation on msdn.
Closes #9101 .
2018-08-12 11:08:06 +03:00
hannsen
4707d34fad
Properly normalize version string before parsing it
...
This allows python scripts to be formatted in PEP 8 style.
2018-08-12 11:08:06 +03:00
Chocobo1
2ffc09d097
Move qm_gen.pri
2018-08-12 11:08:06 +03:00
Chocobo1
afa8d6bb8f
Move .desktop file
2018-08-12 11:08:06 +03:00
Chocobo1
a37ead98e8
Move .ico files into icons dir
2018-08-12 11:08:06 +03:00
Chocobo1
c73cd8d618
Move .qrc files into its own directory
2018-08-12 11:08:06 +03:00
thalieht
800a3aa61e
Change file names and classes names to match them
2018-08-12 11:08:06 +03:00
Thomas Piccirello
ebd815be75
Add WebUI support for Mac ⌘ (Command) key
...
The Command key will now be recognized for WebUI Table multi-selection, as Ctrl is.
2018-08-12 11:08:06 +03:00
Thomas Piccirello
ef669acf89
Implement key functions in Class and refactor
2018-08-12 11:08:06 +03:00
thalieht
ac6426eab1
Fix coding style
2018-08-12 11:08:06 +03:00
Chocobo1
b107b745f2
Revise usage of BOOST_NO_CXX11_RVALUE_REFERENCES
...
Now the flag will be present when building with boost version <= 1.59.
Closes #8990 .
2018-08-12 11:08:06 +03:00
Goshik
3d851a448f
Show current save path in 'Set location' window
...
The feature is useful when the user needs to move their torrent to a
sub or parent folder. If more than one torrent is chosen, the path
of the first selected torrent is used. The window was made wider to
allow more convenient editing of long paths.
2018-08-12 11:08:06 +03:00
Chocobo1
ce133f01aa
Replace deprecated function on macOS
...
Closes #8993 .
2018-08-12 11:08:06 +03:00
Chocobo1
492d378537
Disable certain mouse wheel events in Options dialog
...
The mouse wheel events for QComboBox & QSpinBox widgets in Options
dialog are filtered out.
2018-08-12 11:08:06 +03:00
Chocobo1
7ece484423
Remove duplicate private sections in class
...
And group related methods & variables together.
2018-08-12 11:08:06 +03:00
Chocobo1
be5ad63e21
Replace post-increment with pre-increment
...
And post-decrement with pre-decrement.
2018-08-12 11:08:06 +03:00
Eugene Shalygin
bdac8f8db8
Fix option name in winconf-xxx.cmake
...
The mistake was made by commit 7712d0ada0
2018-08-12 11:08:06 +03:00
Eugene Shalygin
bb893e70c5
Refactor CMake build scripts
...
1. Use FeatureSummary module to show configuration results.
2. Invert option()/find_package() relationship: instead of
calling find_package(... REQUIRED) when option is set, rely on optional
find package call and PackageName_FOUND variable.
3. Refactor handling options that result in simple preprocessor defines
(actually copy the snippet from libtorrent) so that everything is done
in a single function call.
4. Populate target properties in order to get rid of
include_directories() calls.
2018-08-12 11:08:06 +03:00
Chocobo1
57ec9db532
Fix WebUI cache behavior for css files
...
The style.css in public & private folders share the same URI, this
confuses the browser cache, so rename one of them.
2018-08-12 11:08:06 +03:00