thalieht
052206efa1
Add option for regexps in the transferlist search filter's context menu
2018-08-12 16:50:13 +03:00
sledgehammer999
305d73180b
Update Changelog
2018-08-12 11:51:43 +03:00
Couchy
80000bf0fd
Avoid allocating large memory when loading a .torrent file
...
`QIODevice::read(qint64 maxSize)` will allocate full `maxSize` of memory no matter
what the real file size was, this caused users to experience out-of-memory
exception on 32-bit qbt.
Also handle the OOM execption if it still fails.
Closes #9064 , #9075 , #9130 , #9239 , #9246 , #9279 .
2018-08-12 11:08:06 +03:00
sledgehammer999
06ebe756e8
Notify users on 1st time close/minimize to tray
2018-08-12 11:08:06 +03:00
sledgehammer999
5fa3d9f19c
Revert "Set "close to tray" to false as default"
...
This reverts commit dc9ec0e408 .
2018-08-12 11:08:06 +03:00
Chocobo1
5b4c6d3665
Fix I/O error after fetching magnet metadata
...
It is caused by an extra path seperator, so removing it fixes it.
Fixup 9612a75faa .
2018-08-12 11:08:06 +03:00
sledgehammer999
77bd0f17d1
Update AppVeyor config
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
03a702cfbd
Never save resume data for already paused torrents
2018-08-12 11:08:06 +03:00
Vladimir Golovnev (Glassez)
a932cd2ec1
Reorder resume data saving conditionals
...
Having conditionals which can break saving of torrent resume data
in order from more likely to less likely is more effective.
2018-08-12 11:08:06 +03:00
Chocobo1
8e5743380a
Make ProgramUpdater upgrade to 64-bit qbt when running on 64-bit Windows
2018-08-12 11:08:06 +03:00
Chocobo1
8001eb0368
Avoid regenerating .qm files unnecessarily
...
Translations included at top level is to avoid regenerating the .qm files every
time when src.pro is processed.
Partially revert 5b7c089dd2 .
2018-08-12 11:08:06 +03:00
Chocobo1
f214dc88fc
Put temporary files in qbt own temp folder
2018-08-12 11:08:06 +03:00
Chocobo1
5cff5ab135
Refactor GuiIconProvider::generateDifferentSizes()
2018-08-12 11:08:06 +03:00
Chocobo1
82ba154b64
Add const to function signature
2018-08-12 11:08:06 +03:00
thalieht
4ea44bbd2b
Set "close to tray" to false as default
2018-08-12 11:08:06 +03:00
Chocobo1
a5e68a8725
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.
2018-08-12 11:08:06 +03:00
Chocobo1
70291014d1
Refactor code
...
Make the code slightly easier to read.
2018-08-12 11:08:06 +03:00
Chocobo1
1aabcfc30c
Add const to function parameters
2018-08-12 11:08:06 +03:00
Thomas Piccirello
aba80e2b1c
Send all rechecks in one request
2018-08-12 11:08:06 +03:00
Thomas Piccirello
be683fbcd3
Add WebUI Force Reannounce option
2018-08-12 11:08:06 +03:00
Chocobo1
2bcf09cfa5
Remove static keyword overuse
2018-08-12 11:08:06 +03:00
Chocobo1
697325af63
Move member variable initialization
...
Move the initialization from constructor body to member initializer
list.
Remove superfluous initializer.
2018-08-12 11:08:06 +03:00
Chocobo1
c21bd77be5
Remove unnecessary dynamic allocation
...
Also remove unneeded `if ()` conditional.
2018-08-12 11:08:06 +03:00
Chocobo1
d5430adaaa
Avoid binding constant reference to returned object
...
In such cases, it makes no sense doing so.
2018-08-12 11:08:06 +03:00
Chocobo1
9e99a0d3f5
Replace single-character string with character literal
...
Also remove unnecessary dynamic allocation.
2018-08-12 11:08:06 +03:00
sledgehammer999
d088ab6f43
Remove trailing dot from headings
2018-08-12 11:08:06 +03:00
sledgehammer999
820d510c12
Add a TOC in the coding guidelines
2018-08-12 11:08:06 +03:00
Chocobo1
676847fcd0
Add options in AddNewTorrentDialog
...
The new checkboxes are: "Download in sequential order", "Download first
and last pieces first".
2018-08-12 11:08:06 +03:00
Chocobo1
0204630ee6
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.
2018-08-12 11:08:06 +03:00
Chocobo1
b515c7eda4
Fix typo
2018-08-12 11:08:06 +03:00
Chocobo1
73fcecac76
Simplify code
...
This avoids "deferencing null pointer" warning from static analyzers.
2018-08-12 11:08:06 +03:00
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