1
mirror of https://github.com/qbittorrent/qBittorrent synced 2025-10-19 05:12:18 +02:00

Compare commits

..

63 Commits

Author SHA1 Message Date
Chocobo1
1b0fd45643 Fix wrong 'tracker error' count
This happens when a torrent contains some tracker URLs that share the same domain.
Closes #17808.
2022-10-07 12:40:51 +08:00
Vladimir Golovnev
9b267690cc Don't pollute move queue by torrents w/o metadata
There's really nothing to move if the torrent still doesn't have metadata.
Additionally, such torrents in the queue can lead to unexpected behavior
when reloading the torrent after metadata is received.

PR #17823.
2022-10-06 06:35:46 +03:00
sledgehammer999
4e140098ed Merge pull request #17822 from sledgehammer999/backport_nsis_refactor
Backport nsis refactor
2022-10-04 18:42:18 +03:00
Vladimir Golovnev
56c4cc89b9 Correctly load state of use download folder
PR #17807.
Closes #17793.
2022-10-04 13:03:32 +03:00
Chocobo1
74aa41371d Improve column updates granularity 2022-10-04 13:08:21 +08:00
Chocobo1
ea8228280e WebUI: don't disable combobox for file priority
Closes #17794.
PR #17797.
2022-10-04 13:08:21 +08:00
Chocobo1
22ac68152f Fix torrent content checkboxes not updated properly
And reduce emitting redundant 'data updated' signals.

Closes #17144, #17764.
2022-10-04 13:08:21 +08:00
Chocobo1
2831ad5d22 Remove unused functions 2022-10-04 13:08:21 +08:00
Chocobo1
3f15f4a44e Fix coding style 2022-10-04 13:08:21 +08:00
sledgehammer999
98c467e102 NSIS: Refactor configuration to ease installer creation via scripting 2022-10-03 14:46:31 +03:00
sledgehammer999
3ef749d77c NSIS: Require Windows 10 1809 for Qt6 builds
Also refactor the config.nsi with more defines that control the build.
Closes #17783
2022-10-03 14:43:38 +03:00
sledgehammer999
192b01bcb7 NSIS: Drop hardcoded qt's translation filenames 2022-10-03 14:41:52 +03:00
Chocobo1
e151970998 GHA CI: bump "Install Qt" action version 2022-09-16 12:06:47 +08:00
Chocobo1
d85703608a WebAPI: fix wrong behavior for shutdown action
Qt6 has changed implementation for `QCoreApplication::quit` and therefore it is not suitable
anymore.

Closes #17709.
Original PR #17720.
2022-09-16 12:06:47 +08:00
sledgehammer999
f9811ec3b0 Bump to 4.4.5 2022-08-30 02:40:51 +03:00
sledgehammer999
9129c42177 Update Changelog 2022-08-30 02:39:40 +03:00
Vladimir Golovnev
e331db077c Fix missing trackers from magnet link
PR #17606.
2022-08-26 07:20:21 +03:00
sledgehammer999
4a56c3f5df Bump to 4.4.4 2022-08-22 15:45:31 +03:00
sledgehammer999
b1e2e511bb Update Changelog 2022-08-22 15:40:53 +03:00
Coool
ac1fd66f05 NSIS: update Latvian
PR 17529.
2022-08-22 15:11:08 +03:00
Minseo Lee
6431fe5f73 NSIS: update Korean
PR #17547.
2022-08-22 15:11:07 +03:00
bovirus
c31931324d NSIS: Update Italian language
PR #17098.
2022-08-22 15:11:06 +03:00
Blackspirits
f1d78563af NSIS: Update Portuguese translations
PR #17222.
2022-08-22 15:11:05 +03:00
Chocobo1
99b5983143 Set HTTP method restriction on WebAPI actions 2022-08-15 11:57:15 +08:00
Vladimir Golovnev
c1e8849b40 Clear RSS parsing error after use
PR #17465.
2022-08-01 13:18:17 +03:00
brvphoenix
330f20171f Fix reply data can't be decompressed correctly
If the "Accept-Encoding" is not manually specified, it will be
automatically set to the supported encodings by QT and the reply data
will also be automatically decompressed in this case. Setting
"Accept-Encoding" manually will disable the "autodecompress" feature
before QT 6.3.0. Although QT 6.3.x has different behaviors, let QT
specify the "Accept-Encoding" and we will always obtain the decompressed
data.

The macro "QT_NO_COMPRESS" defined when QT is compiled will disable
the zlib support. We can manually address this exceptions.

Original PR #17438.
2022-07-31 13:29:17 +08:00
summer
b53eadaec8 Try to recover missing tags
Tags can go missing from config/resume data. Try to recover them to avoid inconsistent behavior.

Original PR: #17290.
2022-07-06 13:10:38 +08:00
Nick Korotysh
26d78f6462 Open destination folders on macOS in separate thread
In some unknown way, the one line in Objective-C affects Qt's main
loop causing the crash in QApplication::exec() on processing next
event after that call.

Even crash doesn't happen exactly after this call, it will happen
on application exit. Call stack and disassembly are the same in
all cases.

But running that code in another thread solves the issue.

Original PR: #17305.
2022-07-06 13:10:38 +08:00
Chocobo1
9890bb7501 Work around application stuttering on Windows
This is observed by unusual high page faults when the stuttering occurs.
With this workaround, the high page faults still occurs but the GUI remains responsive.
Original PR: #17311.
2022-07-06 13:10:38 +08:00
summer
c7daaf95fc Make working set limit available only on libtorrent 2.0.x builds
You can already control the cache size in libtorrent 1.2.x so it doesn't make sense to implement this limit for all use cases. Also there are some downsides to using working set size to limit memory usage such as unresponsive GUI when limit gets hit.
2022-07-05 12:36:07 +08:00
Vladimir Golovnev
b760f37093 Improve D-Bus notifications handling
Make notifications clickable on Linux by assigning "default" action.
Don't react to unrelated notifications clicked by keeping track of qBittorrent notifications IDs and filter out unrelated ones.
Make D-Bus Notifications interface proxy class to be maintained manually and fix coding style in it.
Closes #9084.
PR #17282.
2022-07-01 11:27:16 +03:00
Vladimir Golovnev
7f5271ae7c Fix incorrect "max outgoing port" setting
PR #17252.
2022-07-01 11:26:30 +03:00
Vladimir Golovnev
1130bf300a Fix incorrect "max outgoing port" setting
PR #17252.
2022-07-01 11:02:53 +03:00
Chocobo1
3f142360ed Fix wrong file names displayed in tooltip
Closes #17179.
2022-06-12 12:55:59 +08:00
brvphoenix
af07a98784 Don't decompress the reply data for Qt 6.3 2022-05-31 12:57:02 +08:00
sledgehammer999
6c546df70b Bump to 4.4.3.1 2022-05-24 23:10:49 +03:00
sledgehammer999
a46348ada9 Update Changelog 2022-05-24 23:09:44 +03:00
sledgehammer999
5fc9bf5d29 Merge pull request #17084 from sledgehammer999/regen_ts
Regenerate translation files
2022-05-24 14:30:38 +03:00
sledgehammer999
556db6a91a Regenerate translation files
Closes #17083
2022-05-24 01:50:17 +03:00
sledgehammer999
9ed9ffcaf2 Bump to 4.4.3 2022-05-22 19:36:51 +03:00
sledgehammer999
bf986fcf4c Update Changelog 2022-05-22 19:35:13 +03:00
sledgehammer999
0036a02a72 Sync translations from Transifex and run lupdate 2022-05-22 19:14:42 +03:00
sledgehammer999
6e268b007b Update instructions about NSIS packaging
Include a helper a script to gather valid Qt translations for packaging.
2022-05-22 18:58:09 +03:00
sledgehammer999
2be2ee6fc2 Delete Qt translations files 2022-05-22 18:58:08 +03:00
sledgehammer999
be4fa061ee qmake: Use installed Qt's translations for packaging 2022-05-22 18:58:08 +03:00
sledgehammer999
665bbc2421 CMake: Use installed Qt's translations for packaging 2022-05-22 18:57:59 +03:00
thalieht
8d408ffc8b Consistently emit signal when file "ignored" state is changed
PR #17042.
Closes #17037.
2022-05-20 08:29:22 +03:00
Chocobo1
aa39c7aae5 Fix wrong GUI behavior in "Optional IP address to bind to" setting
Previously the address field got erroneously reset to "All addresses"
when the network interface is down.
2022-05-20 12:29:31 +08:00
Vladimir Golovnev
7ad667e8d2 Add trackers in exported .torrent files
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>

PR #17018.
2022-05-12 08:12:19 +03:00
summer
0c8220c9fd Prevent the new update box from blocking input on other dialogues
PR #16678.
2022-05-01 16:20:00 +03:00
summer
e9364b72f9 Reduce the number of hashing threads by default
This seems to be the culprit responsible for slower hash rate in RC2_0 releases
2022-05-01 12:31:27 +08:00
Chocobo1
a004f0afc5 WebUI: show correct location path
The `path` might contains '&' (delimit character) so it must be
encoded.
Closes #15976.
2022-05-01 12:28:09 +08:00
Chocobo1
d7f172060c Disable Linux-specific function when compiling for Windows 2022-05-01 12:28:09 +08:00
Chocobo1
9eae2b8ea9 Use correct type for comparisons
`_write()` actually returns `int` type.

And fix wrong function parameters.

Closes #16938.
Closes #16944.
2022-05-01 12:28:09 +08:00
Vladimir Golovnev
26e220e003 Avoid dereferencing null pointers
PR #16896.
Closes #16884 and similar issues.
2022-04-20 10:44:21 +03:00
Vladimir Golovnev
d7e9533e8c Don't corrupt IDs of v2 torrents
PR #16841.
2022-04-09 11:53:17 +03:00
Vladimir Golovnev
8306a41d11 Correctly apply content layout when "Skip hash check" is enabled
PR #16825.
2022-04-07 07:15:31 +03:00
Vladimir Golovnev
169c4991d5 Use an appropriate method to show modal dialog
PR #16809.
2022-04-06 08:39:34 +03:00
Vladimir Golovnev
78344a10fa Don't forget to create 'download_path' field
PR #16810.
2022-04-06 08:38:50 +03:00
Chocobo1
f8d9f70e7f GHA CI: work around error when installing Qt
This is to (temporarily) work around CI errors at jurplel/install-qt-action.
Upstream issue: https://github.com/jurplel/install-qt-action/issues/130

Original PR #16767.
PR #16780.
2022-03-31 13:15:46 +08:00
Vladimir Golovnev
011ac90a52 Correctly handle changing of temp save path
PR #16753.
2022-03-28 07:32:13 +03:00
An0n
c1b38221d2 Fix WebUI crash due to missing tags from config
Tags can be missing from config but set inside .fastresume. May happen due to corrupted/deleted config.
Closes #11906.
PR #16739.
Original PR #16711.
2022-03-27 15:15:13 +08:00
Chocobo1
c621cae43b Don't use explicit memory management
And avoid dangling pointers.
Original PR #16705.
2022-03-27 14:17:42 +08:00
267 changed files with 113047 additions and 123604 deletions

View File

@@ -46,7 +46,7 @@ jobs:
mv "${{ github.workspace }}/.."/boost_* "${{ env.boost_path }}"
- name: Install Qt
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}

View File

@@ -35,7 +35,7 @@ jobs:
max_size=2G
- name: Install Qt
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: ${{ matrix.qt_version }}

View File

@@ -70,7 +70,7 @@ jobs:
move "${{ github.workspace }}/../boost_*" "${{ env.boost_path }}"
- name: Install Qt
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: "5.15.2"

View File

@@ -21,7 +21,7 @@ jobs:
libboost-dev libssl-dev zlib1g-dev
- name: Install Qt
uses: jurplel/install-qt-action@v2
uses: jurplel/install-qt-action@v3
with:
version: "5.15.2"

View File

@@ -1,3 +1,35 @@
Tue Aug 30 2022 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.4.5
- BUGFIX: Fix missing trackers when adding magnet link. Affects libtorrent 2.0.x builds. (glassez)
Mon Aug 22 2022 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.4.4
- BUGFIX: Correctly handle data decompression with Qt 6.3 (brvphoenix)
- BUGFIX: Fix wrong file names displayed in tooltip (Chocobo1)
- BUGFIX: Fix incorrect "max outgoing port" setting (glassez)
- BUGFIX: Make working set limit available only on libtorrent 2.0.x builds (summer)
- BUGFIX: Try to recover missing tags (summer)
- RSS: Clear RSS parsing error after use (glassez)
- WEBAPI: Set HTTP method restriction on WebAPI actions (Chocobo1)
- WINDOWS: Work around application stuttering on Windows (Chocobo1)
- WINDOWS: NSIS: Update Portuguese, Italian, Korean, Latvian translations(Blackspirits, bovirus, Minseo Lee, Coool)
- LINUX: Improve D-Bus notifications handling (glassez)
- MACOS: Open destination folders on macOS in separate thread (Nick Korotysh)
Tue May 24 2022 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.4.3.1
- BUGFIX: Fix broken translations (sledgehammer999)
Sun May 22 2022 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.4.3
- BUGFIX: Correctly handle changing of temp save path (glassez)
- BUGFIX: Fix storage in SQLite (glassez)
- BUGFIX: Correctly apply content layout when "Skip hash check" is enabled (glassez)
- BUGFIX: Don't corrupt IDs of v2 torrents (glassez)
- BUGFIX: Reduce the number of hashing threads by default (improves hashing speed on HDDs) (summer)
- BUGFIX: Prevent the "update dialog" from blocking input on other windows (summer)
- BUGFIX: Add trackers in exported .torrent files (glassez)
- BUGFIX: Fix wrong GUI behavior in "Optional IP address to bind to" setting (Chocobo1)
- WEBUI: Fix WebUI crash due to missing tags from config (An0n)
- WEBUI: Show correct location path (Chocobo1)
- MACOS: Fix main window freezing after opening a files dialog (glassez)
Tue Mar 22 2022 - sledgehammer999 <sledgehammer999@qbittorrent.org> - v4.4.2
- FEATURE: Allow to limit max memory working set size (glassez)
- BUGFIX: Fix UI crash when torrent is in a non-existent category (Kevin Cox)

View File

@@ -0,0 +1,25 @@
# Return Qt translations files as list of paths
# It will return .qm files of qt/qtbase that aren't stub files.
# Requires that Qt has been found first because it depends on qmake being available
function(qbt_get_qt_translations qt_translations)
get_target_property(QT_QMAKE_EXECUTABLE Qt::qmake IMPORTED_LOCATION)
execute_process(COMMAND "${QT_QMAKE_EXECUTABLE}" -query QT_INSTALL_TRANSLATIONS
OUTPUT_VARIABLE QT_TRANSLATIONS_DIR OUTPUT_STRIP_TRAILING_WHITESPACE)
FILE(GLOB QT_TEMP_TRANSLATIONS CONFIGURE_DEPENDS
"${QT_TRANSLATIONS_DIR}/qt_??.qm"
"${QT_TRANSLATIONS_DIR}/qt_??_??.qm"
"${QT_TRANSLATIONS_DIR}/qtbase_??.qm"
"${QT_TRANSLATIONS_DIR}/qtbase_??_??.qm")
foreach(TRANSLATION ${QT_TEMP_TRANSLATIONS})
FILE(SIZE "${TRANSLATION}" translation_size)
# Consider files less than 10KB as stub translations
if (translation_size GREATER_EQUAL 10240)
list(APPEND QT_FINAL_TRANSLATIONS "${TRANSLATION}")
endif()
endforeach()
SET(${qt_translations} ${QT_FINAL_TRANSLATIONS} PARENT_SCOPE)
endfunction()

20
configure vendored
View File

@@ -1,6 +1,6 @@
#! /bin/sh
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.71 for qbittorrent v4.4.2.
# Generated by GNU Autoconf 2.71 for qbittorrent v4.4.5.
#
# Report bugs to <bugs.qbittorrent.org>.
#
@@ -611,8 +611,8 @@ MAKEFLAGS=
# Identity of this package.
PACKAGE_NAME='qbittorrent'
PACKAGE_TARNAME='qbittorrent'
PACKAGE_VERSION='v4.4.2'
PACKAGE_STRING='qbittorrent v4.4.2'
PACKAGE_VERSION='v4.4.5'
PACKAGE_STRING='qbittorrent v4.4.5'
PACKAGE_BUGREPORT='bugs.qbittorrent.org'
PACKAGE_URL='https://www.qbittorrent.org/'
@@ -1329,7 +1329,7 @@ if test "$ac_init_help" = "long"; then
# Omit some internal or obsolete options to make the list less imposing.
# This message is too long to be a string in the A/UX 3.1 sh.
cat <<_ACEOF
\`configure' configures qbittorrent v4.4.2 to adapt to many kinds of systems.
\`configure' configures qbittorrent v4.4.5 to adapt to many kinds of systems.
Usage: $0 [OPTION]... [VAR=VALUE]...
@@ -1400,7 +1400,7 @@ fi
if test -n "$ac_init_help"; then
case $ac_init_help in
short | recursive ) echo "Configuration of qbittorrent v4.4.2:";;
short | recursive ) echo "Configuration of qbittorrent v4.4.5:";;
esac
cat <<\_ACEOF
@@ -1533,7 +1533,7 @@ fi
test -n "$ac_init_help" && exit $ac_status
if $ac_init_version; then
cat <<\_ACEOF
qbittorrent configure v4.4.2
qbittorrent configure v4.4.5
generated by GNU Autoconf 2.71
Copyright (C) 2021 Free Software Foundation, Inc.
@@ -1648,7 +1648,7 @@ cat >config.log <<_ACEOF
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by qbittorrent $as_me v4.4.2, which was
It was created by qbittorrent $as_me v4.4.5, which was
generated by GNU Autoconf 2.71. Invocation command line was
$ $0$ac_configure_args_raw
@@ -4779,7 +4779,7 @@ fi
# Define the identity of the package.
PACKAGE='qbittorrent'
VERSION='v4.4.2'
VERSION='v4.4.5'
printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
@@ -7254,7 +7254,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
# report actual input values of CONFIG_FILES etc. instead of their
# values after options handling.
ac_log="
This file was extended by qbittorrent $as_me v4.4.2, which was
This file was extended by qbittorrent $as_me v4.4.5, which was
generated by GNU Autoconf 2.71. Invocation command line was
CONFIG_FILES = $CONFIG_FILES
@@ -7314,7 +7314,7 @@ ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
ac_cs_config='$ac_cs_config_escaped'
ac_cs_version="\\
qbittorrent config.status v4.4.2
qbittorrent config.status v4.4.5
configured by $0, generated by GNU Autoconf 2.71,
with options \\"\$ac_cs_config\\"

View File

@@ -1,4 +1,4 @@
AC_INIT([qbittorrent], [v4.4.2], [bugs.qbittorrent.org], [], [https://www.qbittorrent.org/])
AC_INIT([qbittorrent], [v4.4.5], [bugs.qbittorrent.org], [], [https://www.qbittorrent.org/])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_MACRO_DIR([m4])
: ${CFLAGS=""}

2
dist/mac/Info.plist vendored
View File

@@ -55,7 +55,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>4.4.2</string>
<string>4.4.5</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More