sledgehammer999
332b173e08
Bump to 4.3.4.1
2021-03-24 21:21:06 +02:00
sledgehammer999
e921cf677a
Update Changelog
2021-03-24 21:19:55 +02:00
Vladimir Golovnev (Glassez)
973b5a4809
Correctly draw progress bar in Qt 6
2021-03-24 21:15:49 +02:00
Chocobo1
688e11a911
Remove wrong parentheses
...
Fix up 87ad8a1495
.
2021-03-24 19:17:30 +02:00
sledgehammer999
f7e6b96493
Bump to 4.3.4
2021-03-23 23:14:15 +02:00
sledgehammer999
88bf6f11c7
Update Changelog
2021-03-23 23:04:12 +02:00
sledgehammer999
90e2236990
Sync translations from Transifex and run lupdate
2021-03-23 23:02:22 +02:00
treysis
6ad7cadc4b
Fix bad IPv6 address format for outgoingInterfaces
...
Fixes https://github.com/qbittorrent/qBittorrent/issues/12892#issuecomment-792292336
2021-03-23 22:26:59 +02:00
brvphoenix
0499111156
WebUI: Avoid decoding strings repeatedly
...
Fix #14553
2021-03-23 22:26:57 +02:00
Vladimir Golovnev (Glassez)
ae44e59c9a
Wrap "resume data" in LoadTorrentParams
2021-03-23 22:26:55 +02:00
Vladimir Golovnev (Glassez)
1de52f9bcf
Drop deprecated code
2021-03-23 22:26:54 +02:00
Vladimir Golovnev (Glassez)
448e55031e
Save resume data when torrent has done checking
2021-03-23 22:26:52 +02:00
Vladimir Golovnev (Glassez)
3b748178c2
Use QRegularExpression instead of deprecated QRegExp
...
Now it follows closely the definition of wildcard for glob patterns.
The backslash (\) character is not an escape char in this context.
In order to match one of the special characters, place it in square
brackets (for example, [?]).
2021-03-23 22:26:50 +02:00
thalieht
a4a54ce712
Allow >100 days in WebUI function "friendlyDuration"
...
Because it's not only used for ETA.
2021-03-23 22:26:48 +02:00
thalieht
d19b524d2d
Fix incorrect seeding time string in WebUI General tab
2021-03-23 22:26:47 +02:00
thalieht
1e2bf50e66
Add seeding time to the active time column in WebUI
...
Closes #14526
2021-03-23 22:26:46 +02:00
Vladimir Golovnev (Glassez)
e7f3409053
Don't use deprecated operators
2021-03-23 22:26:44 +02:00
Vladimir Golovnev (Glassez)
9758633eeb
Use correct return statement
2021-03-23 22:26:42 +02:00
Vladimir Golovnev (Glassez)
3def5e40c4
Include missing header
2021-03-23 22:26:41 +02:00
Vladimir Golovnev (Glassez)
ca923ed02c
Include QDesktopWidget header only when needed
2021-03-23 22:26:38 +02:00
Chocobo1
e4c3bad93a
Fix library requirements
2021-03-23 22:26:37 +02:00
Chocobo1
3b52c5ce97
Draw progress bar in disabled style
2021-03-23 22:26:36 +02:00
Vladimir Golovnev (Glassez)
44b94803a4
Improve "save resume data" handling
2021-03-23 22:26:35 +02:00
jagannatharjun
5d4644c4fc
Remember sub sort column of transfer list
2021-03-23 22:26:34 +02:00
Chocobo1
a2ef115c66
Simplify progress bar painting
2021-03-23 22:26:31 +02:00
Vladimir Golovnev (Glassez)
1356f200b8
Don't use deprecated QTextCodec
2021-03-23 22:26:30 +02:00
Vladimir Golovnev
3c68896b1d
CI: Don't compile on Ubuntu 18.04
2021-03-23 22:26:29 +02:00
Vladimir Golovnev (Glassez)
265da50791
Don't use deprecated features
2021-03-23 22:26:28 +02:00
Vladimir Golovnev (Glassez)
4037143f4e
Raise minimum supported Qt version to 5.12
2021-03-23 22:26:26 +02:00
Chocobo1
8cae8ad5c5
Replace parameters in one step
...
This would avoid the unwanted effect of replacing parameter coming from
another parameter.
2021-03-23 22:26:22 +02:00
Vladimir Golovnev (Glassez)
50bd845682
Initialize torrent status from add torrent params
2021-03-23 22:26:20 +02:00
Vladimir Golovnev (Glassez)
ed5aa07526
CI: Disable libtorrent2 deprecated functions on Travis
2021-03-23 22:26:19 +02:00
Vladimir Golovnev (Glassez)
437b51b3a5
Improve "info hash" handling
...
Define "torrent ID" concept, which is either a SHA1 hash for torrents of version 1,
or a SHA256 hash (truncated to SHA1 hash length) for torrents of version 2.
Add support for native libtorrent2 info hashes.
2021-03-23 22:26:18 +02:00
Vladimir Golovnev (Glassez)
c2ccc9dfa4
Properly show tracker status for "paused" torrents
2021-03-23 22:26:16 +02:00
Vladimir Golovnev (Glassez)
b2c7d8211f
Improve tracker entries handling
2021-03-23 22:26:14 +02:00
Vladimir Golovnev (Glassez)
726455ac3e
Don't allow speed plot buffer to overflow
2021-03-23 22:26:13 +02:00
Vladimir Golovnev (Glassez)
ae2bb4efeb
Accept "share limits" when adding torrent using WebAPI
2021-03-23 22:26:12 +02:00
Vladimir Golovnev (Glassez)
9971329121
Look for qbittorrent.pdb in installation directory
...
Pass application directory as PDB search path in SymInitialize.
Otherwise it searches in application working directory so when you
run qBittorrent with working directory other than its installation
one it can't find qbittorent.pdb file and produces broken stacktrace.
2021-03-23 22:26:10 +02:00
Chocobo1
d0ec1c4a86
Expose ToS setting from libtorrent
...
Closes #14420 .
2021-03-23 22:26:08 +02:00
Chocobo1
9c55600d81
Add missing semicolon
2021-03-23 22:26:01 +02:00
Vladimir Golovnev (Glassez)
b45fb74e01
Define template for classes that represent SHA hashes
2021-03-23 21:05:41 +02:00
Vladimir Golovnev (Glassez)
f16c585a77
Drop implicit conversions between InfoHash and QString
2021-03-23 21:05:40 +02:00
Chocobo1
9c664d04ae
Remove unused lambda capture
2021-03-23 21:05:38 +02:00
Chocobo1
3d0ca83474
Specify Qt version in TravisCI build script
...
In homebrew `qt` package is referring to Qt6 instead of Qt5.
2021-03-23 21:05:37 +02:00
Chocobo1
e713ffb064
Properly stop torrent creation if aborted
...
Closes #11346 .
2021-03-23 21:05:37 +02:00
Chocobo1
cf1e61bcf5
Correctly draw the background of progress bar
...
Closes #12271 .
2021-03-23 21:05:36 +02:00
Vladimir Golovnev (Glassez)
42b22d6645
CI: Use custom vcpkg libtorrent port
2021-03-23 21:05:35 +02:00
Vladimir Golovnev (Glassez)
2d607f8c1a
Raise minimum libtorrent version to 1.2.12
2021-03-23 21:05:34 +02:00
jagannatharjun
69256905c2
Support sub-sorting in Transferlist
2021-03-23 21:05:32 +02:00
brvphoenix
305316b1fc
WebUI: Properly decode strings
2021-03-23 21:05:32 +02:00
Chocobo1
27e222455b
Improve detection of filename extension of audio/video files
2021-03-23 21:05:31 +02:00
Michał Kopeć
2b18318e0c
Add an option to disable icons in menus
2021-03-23 21:05:30 +02:00
Chocobo1
49cadce253
Enable sponsor button on Github
2021-03-23 21:05:29 +02:00
Juraj Oršulić
f1b908b95b
Systemd: wait for mounting of local filesystems
2021-03-23 21:05:28 +02:00
jagannatharjun
4acfcef8da
Add a 3-Hour graph
2021-03-23 21:05:27 +02:00
jagannatharjun
69f2196a22
Make SpeedPlotView averager time aware
...
Previously SpeedPlotView assumed speed is updated per second but the
default value was 1500ms and that can be further changed by the
user, this caused a lot of duplicate data in the calculation of the
graph points. Now Averager averages based on the target duration, resolution
and also takes into account when actually data has arrived.
Also improved resolution of 6-hour graph, previously it was same as 12-hour graph
2021-03-23 21:05:26 +02:00
Chocobo1
b20a3c5b8e
Use std::optional to return results
2021-03-23 21:05:25 +02:00
Chocobo1
2c5271b3b2
Fix potential out-of-bounds access
2021-03-23 21:05:24 +02:00
Si Yong Kim
7696895a88
Refactor apply button logics on options dialog
2021-03-23 21:05:23 +02:00
Si Yong Kim
c1ae5d2572
Add empty name error handling on new category dialog
2021-03-23 21:05:23 +02:00
Si Yong Kim
0e635c7fdd
Add category button on AutomatedRSSDownloader on GUI
...
Closes #7629
2021-03-23 21:05:22 +02:00
Chocobo1
58345e5bbf
Revise getter function for torrrent queue position
...
This addresses https://github.com/qbittorrent/qBittorrent/pull/14335#issuecomment-774667836
The WebAPI is not affected as a workaround is added.
2021-03-23 21:05:21 +02:00
Chocobo1
89382d4ec2
Apply "Hide infinity values" to ETA column
2021-03-23 21:05:20 +02:00
Chocobo1
372f5af36b
Apply "Hide infinity values" to "Down/Up Limit" columns
2021-03-23 21:05:19 +02:00
Chocobo1
f38736729d
Apply "Hide zero values" to "Time Active" column
2021-03-23 21:05:18 +02:00
Chocobo1
bf67ef21c6
Clean up coding style
2021-03-23 21:05:18 +02:00
Chocobo1
cfd40adcb5
Show proper string when torrent availability is not available
2021-03-23 21:05:16 +02:00
Vladimir Golovnev (Glassez)
8210f9841e
Restart "missing files" torrents after changing location
2021-03-23 21:05:16 +02:00
Vladimir Golovnev (Glassez)
ae3d17ec01
Allow "missing files" torrents to save more resume data
2021-03-23 21:05:15 +02:00
Vladimir Golovnev (Glassez)
349e958be3
Allow change-case-only file renaming on Windows
2021-03-23 21:05:14 +02:00
Chocobo1
42acc75394
Use stable sorting in transfer list
2021-03-23 21:05:12 +02:00
Chocobo1
8b91dcedb0
Use built-in function for configuring file contents
2021-03-23 21:05:11 +02:00
dyumin
a454a0303d
Treat errored torrents as finished
2021-03-23 21:05:11 +02:00
Chocobo1
789c6de2e8
Simplify CI script directives
2021-03-23 21:05:10 +02:00
Chocobo1
c2fb51159f
Don't trigger Github Actions CI builds after editing a PR's opening post
...
After dropping "edited" keyword, it is the same as the default.
2021-03-23 21:05:09 +02:00
PriitUring
bfb0afe3cf
NSIS: Add Estonian translation
...
This file was previously not translated.
PR #14331 .
2021-03-23 21:05:08 +02:00
Chocobo1
26a2d4f24d
Reuse existing code for sorting
...
This makes the behavior of sorting by TR_SEED_DATE consistent.
2021-03-23 21:05:08 +02:00
Si Yong Kim
f6e88c8c55
Add hyperlink to Transifex on translator list
...
Closes #12609
2021-03-23 21:05:07 +02:00
Si Yong Kim
51033c212a
Remove Hungarian translator email
2021-03-23 21:05:06 +02:00
Chocobo1
16c858cf61
Prolong checking interval for program updates
2021-03-23 21:05:05 +02:00
Chocobo1
0496543fce
Improve behavior when using ProgramUpdater class
...
This is mainly to avoid involving of `sender()` function.
2021-03-23 21:05:04 +02:00
Chocobo1
746e8a7be1
Revise version comparison
2021-03-23 21:05:04 +02:00
Chocobo1
6d301ccf55
Clean up coding style
2021-03-23 21:05:03 +02:00
jagannatharjun
d441b18da0
Disable expand on double click in TorrentContentTreeView
...
We hook our own actions on double click. Fixes #14269
2021-03-23 21:05:01 +02:00
Vladimir Golovnev (Glassez)
13023ba70a
Bump WebAPI version
2021-03-23 21:05:01 +02:00
Alex
ecb7c02d4c
Update Portuguese BR NSIS translation ( #12376 )
2021-03-23 21:05:00 +02:00
slrslr
fd1ac43157
Translating new phrases ( #12318 )
...
* Update Czech NSIS translation
Co-authored-by: slrslr <czautohits@gmail.com >
2021-03-23 21:04:59 +02:00
Chocobo1
c6d4a1f7d4
Enlarge "speed limit" icon slightly
2021-03-23 21:04:58 +02:00
Chocobo1
01110690da
Don't let "program update" dialog steal focus
...
And also avoid creating an unnecessary event loop.
Closes #14250 .
2021-03-23 21:04:57 +02:00
Chocobo1
c998c7d38d
Disable translation of program name
2021-03-23 21:04:56 +02:00
an0n666
230f98da4a
Validate HTTPS Tracker Certificate by default
2021-03-23 21:04:56 +02:00
xavier2k6
c86db0004f
Change qBittorrent Updater window title
2021-03-23 21:04:54 +02:00
Christoph Rackwitz
e645514c8f
Allow tab to escape the text box in "Edit trackers" dialog
2021-03-23 21:04:53 +02:00
Chocobo1
f3c9dbd512
Remove redundant variable declarations
2021-03-23 21:04:52 +02:00
Chocobo1
ef650293e3
Add ability to prioritize selected items by shown file order
...
Closes #2834 .
2021-03-23 21:04:51 +02:00
Chocobo1
05e217537c
Move menu actions out of .ui files
...
This is to move related code together.
2021-03-23 21:04:50 +02:00
Vladimir Golovnev (Glassez)
13cb3b5ca1
Drop extension from generated content folder name
...
Try to detect whether generated content folder name contains extension
and drop it to avoid possible conflicts between file/folder names.
2021-03-23 21:04:38 +02:00
sledgehammer999
da0b276d5f
Bump to 4.3.3
2021-01-19 00:47:04 +02:00
sledgehammer999
2d73bc9e7d
Update Changelog
2021-01-19 00:46:29 +02:00
Chocobo1
fdd54fe568
Simplify code for checking free disk space
...
`QStorageInfo::bytesAvailable()` is guaranteed to return `-1` for an
invalid path.
https://doc.qt.io/qt-5/qstorageinfo.html#bytesAvailable
2021-01-19 00:45:13 +02:00
Chocobo1
e5ce24e55e
Improve detection of file extension string
2021-01-19 00:45:06 +02:00
sledgehammer999
d90349709b
Sync translations from Transifex and run lupdate
2021-01-17 23:24:02 +02:00
Vladimir Golovnev (Glassez)
adb0fe6582
WebUI: Correctly represent torrent content structure
2021-01-17 22:50:40 +02:00
Chocobo1
5ed81580c9
Add README.md to searchengine folder
2021-01-17 22:50:39 +02:00
Chocobo1
86d6fb86d7
Unify "github actions" artifacts naming scheme
2021-01-17 22:50:38 +02:00
Chocobo1
ddec247d4f
Migrate away from deprecated Qt functions
...
`QString QDateTime::toString(Qt::DateFormat format = Qt::TextDate)` will
be removed in Qt6.
2021-01-17 22:50:37 +02:00
Chocobo1
d431ecbe00
Disable clang "range loop analysis" compiler warning
...
See: https://github.com/qbittorrent/qBittorrent/pull/13915#issuecomment-739449084
2021-01-17 22:50:36 +02:00
Chocobo1
be929ed88c
Set source character sets to UTF-8
...
This suppress warning C4819.
https://docs.microsoft.com/en-us/cpp/build/reference/utf-8-set-source-and-executable-character-sets-to-utf-8?view=msvc-160
2021-01-17 22:50:35 +02:00
Chocobo1
2e1f9bf8be
Add script for generating project tarball
2021-01-17 22:50:20 +02:00
lbilli
7fff393b0e
On Linux use legacy 'data' directory only as a fallback
2021-01-17 22:47:13 +02:00
sledgehammer999
a669ec49ad
Correct copyright attribution
...
These files were created and edited in their entirety in commit 8db4bde15d
As far as I can tell they were almost entirety rewritten from their original state.
The old copyright attribution is restored and the new author is added too.
2021-01-17 22:47:11 +02:00
Vladimir Golovnev (Glassez)
1880082017
Remove redundant suffix from TorrentHandle class
...
Originally, it was just a wrapper for libtorrent::torrent_handle class, so it mimicked its name.
It was then transformed into a more complex aggregate, but the name was retained (just by inertia).
Unlike libtorrent::torrent_handle class in whose name "handle" means the pattern used,
it does not matter for qBittorrent classes and just eats up space in the source code.
2021-01-17 22:47:00 +02:00
sledgehammer999
0cbd15890a
Merge pull request #14170 from sledgehammer999/use_cxx1z
...
Use c++1z to enable c++17
2021-01-07 13:40:05 +02:00
sledgehammer999
7fe7c6c277
Use c++1z to enable c++17
...
It increases compatibility with older qt versions.
2021-01-06 21:54:46 +02:00
jagannatharjun
e4c177fec7
Correctly set items flags in TorrentContentModel
...
Only set editable flag on item's where editing is handled in the delegate
closes #13515
2021-01-06 21:36:40 +02:00
Chocobo1
77f4e6c2cf
Generate version header when configuring project
...
The basic idea is we create a version header template at
"src/base/version.h.in" and the build systems are expected to replace
strings that are enclosed with @ symbols and generate
"src/base/version.h" for other source files to consume/include.
2021-01-06 21:36:39 +02:00
sledgehammer999
4563b11a2e
Bump copyright year
2021-01-06 21:36:37 +02:00
Vladimir Golovnev (Glassez)
cb477f9a29
QMake: Raise minimal macOS target version
2021-01-06 21:36:35 +02:00
Vladimir Golovnev (Glassez)
58ac07667e
Use single parameter to accept torrent source
2021-01-06 21:36:34 +02:00
Vladimir Golovnev (Glassez)
74bf3af41c
Use std::optional<bool> instead of custom TriStateBool
2021-01-06 21:36:33 +02:00
Vladimir Golovnev (Glassez)
9317071122
Change parseBool() to return optional bool value
2021-01-06 21:36:31 +02:00
Vladimir Golovnev (Glassez)
dab32f2090
Use std::optional instead of boost::optional
2021-01-06 21:36:29 +02:00
Vladimir Golovnev (Glassez)
dc464d4d41
Use nested namespaces definition syntax
2021-01-06 21:36:28 +02:00
Chocobo1
e7e3f6a9db
Don't use deprecated locale name
2021-01-06 21:36:27 +02:00
Chocobo1
5a1c4e79b3
Revise store/load state operations of Options Dialog
2021-01-06 21:36:26 +02:00
Chocobo1
c6d9ab6810
Remember dialog sizes
...
This applies to "About Dialog", "Ban List Options Dialog", "Download From URL Dialog", "IP Subnet
Whitelist Options Dialog", "Search Plugin Select Dialog", "Search Plugin Source Dialog",
"Statistics Dialog", "Speed Limit Dialog" and "Torrent Options Dialog".
Also unifies storing the dialog size under the key "Size".
2021-01-06 21:36:24 +02:00
Chocobo1
d7afad835e
Revise SettingsStorage store/load value interface
2021-01-06 21:36:22 +02:00
Chocobo1
8608d7b9da
Improve load data behavior of SettingsStorage class
...
Previously it only handle the case of failed lookup, now it discard
invalid values when deserializing the database from disk.
Also checks whether the data is convertible to the intended type.
2021-01-06 21:36:22 +02:00
Vladimir Golovnev (Glassez)
72970602af
Reload "missing files" torrent instead of re-checking
2021-01-06 21:36:20 +02:00
Vladimir Golovnev (Glassez)
86579ca87d
Extract torrent reloading logic into separate method
2021-01-06 21:36:19 +02:00
Vladimir Golovnev (Glassez)
e55582124c
Drop notification about move storage failed
2021-01-06 21:36:17 +02:00
Vladimir Golovnev (Glassez)
bd8b06c607
Drop notification about move storage finished
2021-01-06 21:36:16 +02:00
Chocobo1
230fedf069
Move parsing of TriStateBool to a static class function
2021-01-06 21:36:14 +02:00
thalieht
7bea10f507
Update "Keep top-level folder" in WebUI options
2021-01-06 21:36:13 +02:00
Chocobo1
7cde969b90
Exclude configure script for "trailing newlines" checking
2021-01-06 21:36:12 +02:00
Chocobo1
a3b8f6880b
Migrate away from deprecated AC_OUTPUT
macro
...
The `AC_OUTPUT` has two versions, the deprecated one takes arguments and the other not. Check the
following link for equivalent replacement:
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.70/html_node/Obsolete-Macros.html#Obsolete-Macros
Also regenerate the configure script with the latest Autoconf 2.70.
2021-01-06 21:35:33 +02:00
Chocobo1
ad79fc8d43
Migrate away from deprecated std::iterator
class
2021-01-06 21:31:51 +02:00
Chocobo1
fb4bf94a56
Use function-pointer based signal-slot connection
2021-01-06 21:31:50 +02:00
Chocobo1
1c184944fd
Remove unused define
2021-01-06 21:31:49 +02:00
Chocobo1
ec420f6617
Bump project requirement to C++17
2021-01-06 21:31:47 +02:00
Chocobo1
d908227619
Add a thin layer around SettingsStorage class
...
This new layer would be handy for saving GUI widget states as they don't
need the value cached and they store/load rarely.
2021-01-06 21:31:45 +02:00
sledgehammer999
ac8167410b
Add new languages
...
* Azerbaijani
* Estonian
2021-01-06 21:31:44 +02:00
Vladimir Golovnev (Glassez)
26ce187b30
Don't call non-existent elements
...
Fixed a regression where the script tries to access elements that no longer
exist on the page, because they were replaced with others by a previous change.
2021-01-06 21:31:43 +02:00
Vladimir Golovnev (Glassez)
2c4e04e537
Don't call non-existent elements
...
Fixed a regression where the script tries to access elements that no longer
exist on the page, because they were replaced with others by a previous change.
2021-01-06 21:31:42 +02:00
Vladimir Golovnev (Glassez)
b418f65c2f
Improve content file/folder names handling
...
Move files/folders renaming functions to core classes.
Query file/folder for renaming by its current path.
Add ability to rename content folders from WebAPI/WebUI.
2021-01-06 21:31:41 +02:00
Vladimir Golovnev (Glassez)
dd3a8d5d56
Fix folder name extraction functions
...
It should return empty string if there is no parent folder.
2021-01-06 21:31:39 +02:00
Chocobo1
49e54a55df
Capitalize locale names
2021-01-06 21:31:38 +02:00
thalieht
8cd0a7ae85
Group several torrent options into one dialog
...
Speed limits, share limits and the new options to disable DHT, PeX, LSD per torrent
2021-01-06 21:31:36 +02:00
thalieht
442f0df613
Save fastresume when setting torrent speed limits
2021-01-06 21:31:35 +02:00
thalieht
f9ee5bdb59
Increase maximum global speed limits from ~1 GiB/s to ~2 GiB/s
...
Closer to the INT_MAX limit of ~2 Billion when multiplied by 1024 for libtorrent
2021-01-06 21:31:33 +02:00
thalieht
b9602cc6ab
Convert existing speed dialog to global + alt global limits only
2021-01-06 21:31:25 +02:00
sledgehammer999
abb854a1e6
Bump to 4.3.2
2020-12-27 13:42:41 +02:00
sledgehammer999
4ee17a73d0
Update Changelog
2020-12-27 13:42:40 +02:00
sledgehammer999
faf6e82274
Sync translations from Transifex and run lupdate
2020-12-26 21:18:40 +02:00
Vladimir Golovnev (Glassez)
c08ec1ac5e
Allow to add root folder to torrent content
2020-12-26 20:27:34 +02:00
Vladimir Golovnev (Glassez)
cd0b6d9a43
Extract enum serialization/parsing functions
2020-12-26 20:27:33 +02:00
Vladimir Golovnev (Glassez)
b8f1142abe
Improve torrent name handling
2020-12-26 20:27:31 +02:00
Chocobo1
78859415d6
Use a helper function to look up stat indexes
2020-12-26 20:27:29 +02:00
Chocobo1
ef92c17192
Don't use removed stat metric in libtorrent 2.0
...
For now, the metric is not entirely removed due to WebAPI still needs to
access it.
2020-12-26 20:27:28 +02:00
Chocobo1
22f3abc4b5
Initialize stat indices to -1
...
When the index is initialized it will be set to a number >= 0, so we use
-1 to denote its uninitialized status.
2020-12-26 20:27:27 +02:00
Chocobo1
a56e6294c1
Fix wrong JSON type returned
...
Fix up 78638a15be
.
Closes #14041 .
2020-12-26 20:27:26 +02:00
Chocobo1
77909e0093
Don't use default CFLAGS, CXXFLAGS from autotools
...
Before this commit, autotools will inject `-g -O2` to debug build
(`--enable-debug=yes`) and rendering the result binary useless. This
commit fixes it.
https://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.70/html_node/C_002b_002b-Compiler.html
Closes #14032 .
2020-12-26 20:27:25 +02:00
Vladimir Golovnev (Glassez)
2c2bb14b2a
Fix bug of "move storage job" can be performed multiple times
2020-12-26 20:27:16 +02:00
Chocobo1
73c8b77464
Migrate away from deprecated QVariant comparison operators
...
Fortunately, serializing to JSON limits the data types to a very small
subset and thus we are able to implement the comparison without much
hassle.
Fix up cba8d83b21
.
2020-12-26 20:27:14 +02:00
Alessandro Simonelli
042238db87
NSIS: Fixed italian.nsi after 4.3.0.1 update
...
Merged my previous fixes (discussed in #13607 ) with the suggestions by @glassez (#13615 ).
2020-12-26 20:27:13 +02:00
FranciscoPombal
6e267f8e81
Update coding guidelines policy for include guards
2020-12-26 20:27:11 +02:00
FranciscoPombal
fdc64d9b38
Use #pragma once instead of include guards
2020-12-26 20:27:10 +02:00
Chocobo1
0b42425db5
Add support for allow_idna
option
...
Upstream PR: https://github.com/arvidn/libtorrent/pull/5316
2020-12-26 20:27:08 +02:00
Chocobo1
e5d7738127
Update "HTTPS tracker validation" enablement conditional
...
https://github.com/arvidn/libtorrent/pull/5313
2020-12-26 20:27:06 +02:00
Chocobo1
422489e2a1
Revise Utils::Version comparison operators
2020-12-26 20:27:04 +02:00
Chocobo1
7de983b4e5
Add operator< for InfoHash class
2020-12-26 20:27:03 +02:00
Chocobo1
e4e55d2a80
Migrate away from deprecated QVariant comparison operators
...
Another idea would be manually define a custom comparison function for
QVariant. However, having the function would be excessive due to its
limited usage count, also note that we are already casting
various QVariant to its underlying type in existing code.
2020-12-26 20:27:01 +02:00
Vladimir Golovnev (Glassez)
926012ce71
Fix bug of torrents don't save "stopped" state
2020-12-26 20:27:00 +02:00
Chocobo1
487eb554c9
Fix coding style
2020-12-26 20:26:59 +02:00
Chocobo1
5a96e1fc7a
Use Qt provided forward declaration header
2020-12-26 20:26:58 +02:00
FranciscoPombal
2fe698ee60
CMake: detect required header for STACKTRACE feature
...
musl does not provide execinfo.h, so our current stacktrace-related
code cannot be used with it.
2020-12-26 20:26:57 +02:00
Chocobo1
177ac32a5e
Use the correct type when referring to info hash
2020-12-26 20:26:55 +02:00
Vladimir Golovnev (Glassez)
5f34d1555b
Fix received metadata handling
2020-12-26 20:26:54 +02:00
FranciscoPombal
7cfe68f46c
Bump dependency versions in CI
...
- Bump vcpkg version in GitHub Actions CI
- Bump libtorrent version in Travis CI
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru >
2020-12-26 20:26:53 +02:00
Vladimir Golovnev
f94f4d2391
Drop support for building with libtorrent < 1.2.11
...
Co-authored-by: Vladimir Golovnev <glassez@yandex.ru >
2020-12-26 20:26:52 +02:00
FranciscoPombal
73b18d7ef3
Update minimum depedency versions
2020-12-26 20:26:51 +02:00
FranciscoPombal
817e9c4747
Fix method invocation on Qt < 5.10
...
Fixup 0c3fe54b0b
2020-12-26 20:26:48 +02:00
Vladimir Golovnev (Glassez)
28844eff44
Search for existing files in separate thread
2020-12-26 20:26:47 +02:00
Vladimir Golovnev (Glassez)
389664213b
Don't rewrite TorrentInfo instance if it's valid
2020-12-26 20:26:46 +02:00
Vladimir Golovnev (Glassez)
953b6fd6f8
Properly handle "Append extension" option changing
2020-12-26 20:26:45 +02:00
Vladimir Golovnev (Glassez)
9b4f3fcbf8
Clean up metadata downloading code
2020-12-26 20:26:43 +02:00
Chocobo1
80743180be
Remove unnecessary restriction on input length
...
Closes #13884 .
2020-12-26 20:26:42 +02:00
Chocobo1
b2847b2381
Update URL to libtorrent settings
2020-12-26 20:26:41 +02:00
Chocobo1
eb657ec032
Move "embedded tracker" options to qbt section
2020-12-26 20:26:39 +02:00
Chocobo1
fc2be601df
Add links to libtorrent documentation
2020-12-26 20:26:38 +02:00
Chocobo1
5786c7ff11
Lift upper limit of "Max concurrent HTTP announces" option
...
Closes #13800 .
2020-12-26 20:26:37 +02:00
Jesse Chan
4a183dd968
WebAPI: bump version to 2.6.2
2020-12-26 20:26:36 +02:00
Jesse Chan
7c10dba10c
WebAPI: allow to attach tags while adding torrents
2020-12-26 20:26:35 +02:00
sledgehammer999
894446d308
Don't try to remove folders for a torrent without metadata
2020-12-26 20:26:34 +02:00
sledgehammer999
47e9c5ac08
Fix status of torrents without metadata
2020-12-26 20:26:33 +02:00
Chocobo1
7f47ac11f1
Add libtorrent 2.0 to TravisCI script
...
Also bumping to ubuntu focal as libtorrent requires boost >= 1.66.
2020-12-26 20:26:32 +02:00
Chocobo1
67b17891fa
Simplify the calculation of speed graph scale
2020-12-26 20:26:31 +02:00
Chocobo1
dd5b7ba05b
Avoid potential rounding to integer issues
2020-12-26 20:26:30 +02:00
Chocobo1
61aa4d9f1c
Fix coding style
2020-12-26 20:26:29 +02:00
Chocobo1
6e924b668e
Fix availability value
...
Closes #13869 .
Fix up 02f19bfbee
.
2020-12-26 20:26:27 +02:00
FranciscoPombal
618ce33fa0
Detect .ts file issues with file health workflow
...
Also adjust newlines to improve output
2020-12-26 20:26:26 +02:00
Chocobo1
ac413c76b9
Update to use latest macOS image for TravisCI
...
The default version is so outdated that it needs to rebuild many
dependencies. Now we bump it to the latest version so that it can use
prebuilt packages.
2020-12-26 20:26:25 +02:00
Chocobo1
f266184514
Add ability to use 'shift+delete' to delete torrents in WebUI
...
Closes #13827 .
2020-12-26 20:26:24 +02:00
Chocobo1
8c48bf4a70
Fix wrong data used for comparison
...
In torrent transfer list we should use underlying data for sorting, not
displayed values.
Closes #13818 .
2020-12-26 20:26:23 +02:00
Andrei Stepanov
8bee69c9fc
NSIS: Update Russian translation
2020-12-26 20:26:14 +02:00
sledgehammer999
5876886345
Bump to 4.3.1
2020-11-25 13:49:50 +02:00
sledgehammer999
0392bfce3c
Update Changelog
2020-11-25 13:49:48 +02:00
sledgehammer999
c66cf43d6a
Sync translations from Transifex and run lupdate
2020-11-24 17:04:07 +02:00
Chocobo1
7515afc058
Pin github actions scripts to major versions
...
> Using the specific major action version allows you to receive critical
> fixes and security patches while still maintaining compatibility. It
> also assures that your workflow should still work.
https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions#jobsjob_idstepsuses
2020-11-24 16:14:16 +02:00
Thomas De Rocker
5fcfcc901e
Fix confusion in date format description ( #1 )
...
* Update automatedrssdownloader.ui
* Update rssDownloader.html (#2 )
2020-11-24 16:14:15 +02:00
Vladimir Golovnev (Glassez)
1728c16580
Improve coding style
2020-11-24 16:14:14 +02:00
Thomas De Rocker
d3f46452a9
Update dutch.nsi
...
As referenced in https://github.com/qbittorrent/qBittorrent/pull/13615
and suggested by @glassez
- Use the word qBittorrent when it is mentioned for the first time within a string.
- If the string contains other references to qBittorrent, then use it (rather than repeating qBittorrent).
Line 24 is the updated Dutch translation for the recently updated English source string (may 2020)
2020-11-24 16:14:09 +02:00
sledgehammer999
7092a98c93
Add Latgalian translation
...
Closes #12415
2020-11-24 16:14:08 +02:00
sledgehammer999
8e19f66b4f
Update .desktop file translations
2020-11-24 16:14:06 +02:00
Chocobo1
b6ab2abf3f
Don't use deprecated torrent state "allocating"
...
Closes #13737 .
2020-11-24 16:14:05 +02:00
Vladimir Golovnev (Glassez)
3edaaa30c9
Handle torrent "paused" state at application level
2020-11-24 16:14:04 +02:00
FranciscoPombal
38efff461e
Add GitHub Actions file health workflow
2020-11-24 16:14:03 +02:00
FranciscoPombal
2179148b8d
Make sure there are no empty files
2020-11-24 16:14:02 +02:00
FranciscoPombal
f92c4c0a40
Fix extra/missing trailing new lines in files
2020-11-24 16:14:00 +02:00
FranciscoPombal
1e7f792dbb
Fix trailing whitespace in multiple files
...
Also fix formatting of CODING_GUIDELINES.md
2020-11-24 16:13:59 +02:00
FranciscoPombal
1d4af505c2
Encode files in UTF-8 without BOM
2020-11-24 16:13:57 +02:00
Chocobo1
baa609b713
Remove unused function
2020-11-24 16:13:55 +02:00
Chocobo1
bc20cf9ad7
Remove redundant semicolon
2020-11-24 16:13:53 +02:00
Chocobo1
7d3ecfa9a6
Allow adding torrents using "Paste" key sequence
...
Closes #13685 .
2020-11-24 16:13:52 +02:00
NotTsunami
88a90ed7d4
Fix mingw64 build error
...
mingw64 defines interface, so revert back to previous naming scheme
Fixes: 87864531ab
Closes #13649
2020-11-24 16:13:51 +02:00
jagannatharjun
3e540b3f51
Align integer data to right in torrent content view
2020-11-24 16:13:50 +02:00
jagannatharjun
87e1661bd5
Rename TR_PROGRESS header in TransferList
...
Closes #13665
2020-11-24 16:13:49 +02:00
Chocobo1
f82a4051af
Remove outdated information
2020-11-24 16:13:47 +02:00
Vladimir Golovnev (Glassez)
5730e917a1
Fix torrent state calculation
2020-11-24 16:13:46 +02:00
Vladimir Golovnev (Glassez)
5e7d7c2ef0
Don't resume "paused" torrents when checking by libtorrent
2020-11-24 16:13:45 +02:00
jagannatharjun
2b6e1953d7
Use ProgressbarDelegate for drawing progressbar in PropListDelegate
...
Also directly provide display data from model rather then generating it in delegate
2020-11-24 16:13:43 +02:00
jagannatharjun
6fc50f4169
Use ProgressBarDelegate for drawing progressbar in TransferListView
2020-11-24 16:13:42 +02:00
jagannatharjun
40d7a53695
Implement ProgressBarDelegate
2020-11-24 16:13:41 +02:00
Chocobo1
7e89893454
Add support for tracker scrape in libtorrent 2.0
2020-11-24 16:13:39 +02:00
Chocobo1
d83f09e731
Migrate away from deprecated functions in libtorrent 2.0
2020-11-24 16:13:38 +02:00
Chocobo1
36575b225d
Improve compatibility with libtorrent 2.0
...
In libtorrent 2.0, the `connection_type` was changed to a flag type and
hence it cannot be used in a switch statement directly. Also our use of
`connection_type` is limited so that a single equality comparison
would cover all of our use cases.
2020-11-24 16:13:36 +02:00
jagannatharjun
fe0ea843e0
Fix crash when clicked outside the table of torrent content view
...
Closes #13645
2020-11-24 16:13:35 +02:00
FranciscoPombal
a8911f8136
Clarify protocol choice label
2020-11-24 16:13:34 +02:00
FranciscoPombal
c5ef1a0207
Update "GitHub Actions" CI actions versions
2020-11-24 16:13:32 +02:00
brvphoenix
102d628c0a
Fix the issue that IPv6 address can't be banned
...
The ban action doesn't depend on ipfilter.
2020-11-24 16:13:31 +02:00
FranciscoPombal
6ea3acdaea
Expose contentPath in WebAPI torrents/info
...
Bump WebAPI version to 2.6.1
2020-11-24 16:13:30 +02:00
Chocobo1
621578353d
Remove redundant checking before remove
2020-11-24 16:13:29 +02:00
Chocobo1
ca776c3036
Fix class name
2020-11-24 16:13:28 +02:00
Chocobo1
9d27eb3b57
Move qHash helper for libtorrent types to its own file
2020-11-24 16:13:26 +02:00
Vladimir Golovnev (Glassez)
9171dffe97
Prevent resume data to be saved for removed torrent
2020-11-24 16:13:25 +02:00
thalieht
f919d4f5bf
Fix toggling advanced option in WebUI
...
option "Disallow connection to peers on privileged ports"
2020-11-24 16:13:24 +02:00
Chocobo1
59afc7c520
Avoid settings being reset via WebAPI
...
Closes #13585 .
2020-11-24 16:13:23 +02:00
Chocobo1
f02b65b866
Fix typos
2020-11-24 16:13:19 +02:00
Andrei Stepanov
891c471160
Fix typo in connection.cpp
...
limiation -> limitation
2020-11-24 16:13:17 +02:00
Sepro
f49f5ba9a1
Place WebUI RSS description in sandboxed iframe
2020-11-24 16:10:40 +02:00
NotTsunami
539b3b7c3e
Remove branches block from Travis config
...
This block has no significance because these branches are stale and
builds will not be triggered on these branches.
2020-11-24 16:10:39 +02:00
NotTsunami
83ce285138
Disallow CMake build failures on Travis
...
Our CMake configuration has matured over time, thus require CMake
builds to require successful builds on Travis CI.
2020-11-24 16:10:30 +02:00
sledgehammer999
260e48b705
Correct the Changelog entry
2020-10-22 14:48:11 +03:00
sledgehammer999
f09ee1b398
Bump to 4.3.0.1
2020-10-22 09:29:00 +03:00
sledgehammer999
e3c2266611
Update Changelog
2020-10-22 09:22:54 +03:00
bovirus
53fb6220c5
NSIS: Update Italian translation
2020-10-22 09:21:00 +03:00
sledgehammer999
34e6b73374
Close parentheses in Changelog entry
2020-10-19 01:48:52 +03:00
sledgehammer999
b925cffddb
Bump to 4.3.0
2020-10-18 22:41:04 +03:00
sledgehammer999
3595626eff
Update Changelog
2020-10-18 22:41:03 +03:00