Commit graph

10039 commits

Author SHA1 Message Date
Chocobo1
35f8af32a3
Suppress unused variable warning on macOS 2020-04-22 18:19:04 +03:00
Chocobo1
37354a9e29
Avoid holding encoded resume data in memory
Now it the encoded resume data will be streamed to file instead of a
temporary buffer holding the whole of it.
2020-04-22 18:19:02 +03:00
József Sallai
7cb14e2a5b
Detect python3 executable on Windows 2020-04-22 18:19:01 +03:00
Vladimir Golovnev (Glassez)
4aae7266a5
Save "resume data" when torrent storage is moved 2020-04-22 18:19:00 +03:00
Raif Atef
075245c915
Fix outgoing interface is not getting assigned
Assignment was missing in main branch of condition statement.
Closes https://github.com/qbittorrent/qBittorrent/issues/12421
2020-04-22 18:18:59 +03:00
adem
476707cc80
Remove white outline around mascot.png 2020-04-22 18:18:58 +03:00
Chocobo1
7b0b5e3d7f
Avoid inefficient behavior
Since the class needs to be copy-constructible, there may be many
copies of an instance. So instead of writing to the device on every
destructor call, only flush buffer on the last destructor call.
2020-04-22 18:18:56 +03:00
Chocobo1
4142722303
Sort locale language list 2020-04-22 18:18:55 +03:00
NotTsunami
8ebb11f981
Set disk cache size for older libtorrent versions
Libtorrent versions older than 1.2.6 have a bug when setting disk
cache size to auto.

See 6c880159c9.
2020-04-22 18:18:54 +03:00
Chocobo1
80016db781
Fix wrong logic that disables "prevent sleeping" timer
Also update power management state early so we don't need to wait for
the timer timeout to have the effect.
2020-04-22 18:18:53 +03:00
Chocobo1
a9f43bd5d2
Clean up coding style 2020-04-22 18:18:52 +03:00
Chocobo1
2f0c3f047a
Avoid holding entire file in memory
Previously we need a file buffer that is as large as the file size and
this could be a problem when user has less free memory available or
having very large data. Now with the help of `FileOutputIterator`,
we can have a much smaller, fixed size immediate file buffer and also
the code looks nice with `lt::bencode()`.
2020-04-22 18:18:50 +03:00
Vladimir Golovnev (Glassez)
f40a36ecb3
Fix sub-sorting of Transfer list
Closes #12330.
2020-04-22 18:18:50 +03:00
Chocobo1
a1ee1c0448
Remove redundant type attribute
It already defaults to `text/css` if value is absent (in HTML5).
2020-04-22 18:18:49 +03:00
Chocobo1
939f83bdd5
Fix mismatch ID 2020-04-22 18:18:48 +03:00
Chocobo1
e98a887286
Improve logging for errors
This commit also allows the strings to be translated.
2020-04-22 18:18:37 +03:00
sledgehammer999
29e9594859
Bump to 4.2.3 2020-04-02 00:19:58 +03:00
sledgehammer999
e881a42368
Update Changelog 2020-04-02 00:19:54 +03:00
Vladimir Golovnev (Glassez)
67c6107892
Fix unexpected torrent resume after app restart
Closes #12322.
2020-04-02 00:17:45 +03:00
sledgehammer999
ea66edd1cb
Sync translations from Transifex and run lupdate 2020-04-01 17:42:06 +03:00
Vladimir Golovnev (Glassez)
cb444978ef
Prevent multiple instances for the same app config 2020-04-01 17:18:39 +03:00
sledgehammer999
2794e883b6
Fix broken UNC paths in fastresumes on Windows
See #12245 and #12282
2020-04-01 17:18:38 +03:00
Tester798
e86249a4e8
Fix regression when fastresume contains network path
Closes #12245 after regression was introduced in #11785.
2020-04-01 17:18:37 +03:00
NotTsunami
6f45764629
Add UPnP lease duration advanced option
This is a new setting added that is pending addition to
libtorrent 1.2.6. This setting is important because some routers do
not support expiration times on port-maps and do not return an error
either, silently failing. The previous default of permanent leases is
retained.
2020-04-01 17:18:36 +03:00
LameLemon
5250a8be42
Add alt and title tags for WebUI footer
Improves accessibility of the WebUI. Closes #12219.
2020-04-01 17:18:35 +03:00
Chocobo1
f3d878324b
Initialize struct variables
clang static analyzer was emitting some warning about uninitialized
variable usage and this patch fixes it.
2020-04-01 17:18:34 +03:00
Chocobo1
43d9d16241
Add logging for SOCKS5 proxy errors 2020-04-01 17:18:33 +03:00
Andrei Stepanov
5ad8f60ca1
NSIS: Update Russian translation
Remake of my previous PR https://github.com/qbittorrent/qBittorrent/pull/12251
2020-04-01 17:18:32 +03:00
Chocobo1
539fe7259e
Avoid log file excessive flushing
Excessive flushing could happen when a lot of logging happens in a short
time interval.
2020-04-01 17:18:30 +03:00
Chocobo1
6521d00d5b
Save log file in UTF-8 encoding
Otherwise it uses sytem defaults: usually UTF-8 on Linux and local 8-bit
encoding on Windows.
2020-04-01 17:18:29 +03:00
Chocobo1
e8010abc8b
Rename variable 2020-04-01 17:18:28 +03:00
Chocobo1
99614aaa9d
Include translation resources with file globbing
This will include all qtbase_*.qm files and only explicitly listed
qt_*.qm files will be included.
2020-04-01 17:18:27 +03:00
Burak Yavuz
56342c9c79
NSIS: Update Turkish translation 2020-04-01 17:18:25 +03:00
maboroshin
efa748e853
NSIS: Update Japanese translation 2020-04-01 17:18:24 +03:00
Roope Jukkara
26ee009e72
NSIS: Update Finnish translation
Translated most of the finnish installer translation -file to finnish language.
2020-04-01 17:18:22 +03:00
Chocobo1
aff4065e42
Rely on Qt ownership to free resources
The m_reply has already changed parent in
DownloadHandlerImpl::assignNetworkReply() and thus we can rely on Qt
ownership to delete the object.
2020-04-01 17:18:19 +03:00
Nick Korotysh
1c1cac2cba
Don't round scaling factor
Qt 5.14 introduced new feature related to HighDPI screens support,
this parameter is called "scale factor rounding policy", and it is
intended to improve fractional scale factor support (like 150%).
Qt::PassThrough value guarantee that no any rounding will applied to
scale factor, and will be used as is.
2020-04-01 17:18:18 +03:00
Chocobo1
ea3c360901
Construct QString more efficiently 2020-04-01 17:18:16 +03:00
Chocobo1
39fe0025cd
Allow to translate error messages 2020-04-01 17:18:02 +03:00
sledgehammer999
3c17ad566c
Bump to 4.2.2 2020-03-24 16:39:31 +02:00
sledgehammer999
97bfd13060
Update Changelog 2020-03-24 16:38:12 +02:00
sledgehammer999
3e91481672
Sync translations from Transifex and run lupdate 2020-03-24 16:36:04 +02:00
Kacper Michajłow
e131cd16a1
Add missing QPainterPath header include 2020-03-24 16:15:14 +02:00
an0n666
a0976f4181
NSIS: Add option to remove Windows path length limitation 2020-03-24 16:15:13 +02:00
FranciscoPombal
5366bebb97
WebAPI: Always allow whitespace in category names 2020-03-24 16:15:12 +02:00
FranciscoPombal
f51cd36c29
WebAPI: fix matching uncategorized torrents
Closes #11748.
2020-03-24 16:15:12 +02:00
thalieht
553f443fbc
Disable Auto TMM when not using default savepath from monitored folder 2020-03-24 16:15:11 +02:00
NotTsunami
97a92984c0
Allow other keypresses in LogListWidget
By not emitting the native signal, all other keypresses other than
the copy and select keysequences are ignored. This should reallow
keyboard navigation within LogListWidget objects.

Closes #12172.
2020-03-24 16:15:10 +02:00
FranciscoPombal
f1489dc2bf
Fix total connected peers count calculation
Also fix small typo in function name.
2020-03-24 16:15:10 +02:00
thalieht
716aad9483
Append new move storage job to queue
fixup e4ff206e3c
2020-03-24 16:15:09 +02:00