mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-27 23:44:48 +00:00
Move torrents to parent category when category is removed
Some checks are pending
CI - File health / Check (push) Waiting to run
CI - macOS / Build (1.2.20, GUI=OFF, 6.10.1) (push) Waiting to run
CI - macOS / Build (1.2.20, GUI=ON, 6.10.1) (push) Waiting to run
CI - macOS / Build (2.0.11, GUI=OFF, 6.10.1) (push) Waiting to run
CI - macOS / Build (2.0.11, GUI=ON, 6.10.1) (push) Waiting to run
CI - Python / Check (push) Waiting to run
CI - Ubuntu / Build (1.2.20, GUI=OFF, 6.6.3) (push) Waiting to run
CI - Ubuntu / Build (1.2.20, GUI=ON, 6.6.3) (push) Waiting to run
CI - Ubuntu / Build (2.0.11, GUI=OFF, 6.6.3) (push) Waiting to run
CI - Ubuntu / Build (2.0.11, GUI=ON, 6.6.3) (push) Waiting to run
CI - WebUI / Check (push) Waiting to run
CI - Windows / Build (${{ matrix.libt_version }}, ${{ matrix.config.arch }}) (map[arch:x64 os:windows-latest qt_arch:win64_msvc2022_64], 1.2.20) (push) Waiting to run
CI - Windows / Build (${{ matrix.libt_version }}, ${{ matrix.config.arch }}) (map[arch:x64 os:windows-latest qt_arch:win64_msvc2022_64], 2.0.11) (push) Waiting to run
Some checks are pending
CI - File health / Check (push) Waiting to run
CI - macOS / Build (1.2.20, GUI=OFF, 6.10.1) (push) Waiting to run
CI - macOS / Build (1.2.20, GUI=ON, 6.10.1) (push) Waiting to run
CI - macOS / Build (2.0.11, GUI=OFF, 6.10.1) (push) Waiting to run
CI - macOS / Build (2.0.11, GUI=ON, 6.10.1) (push) Waiting to run
CI - Python / Check (push) Waiting to run
CI - Ubuntu / Build (1.2.20, GUI=OFF, 6.6.3) (push) Waiting to run
CI - Ubuntu / Build (1.2.20, GUI=ON, 6.6.3) (push) Waiting to run
CI - Ubuntu / Build (2.0.11, GUI=OFF, 6.6.3) (push) Waiting to run
CI - Ubuntu / Build (2.0.11, GUI=ON, 6.6.3) (push) Waiting to run
CI - WebUI / Check (push) Waiting to run
CI - Windows / Build (${{ matrix.libt_version }}, ${{ matrix.config.arch }}) (map[arch:x64 os:windows-latest qt_arch:win64_msvc2022_64], 1.2.20) (push) Waiting to run
CI - Windows / Build (${{ matrix.libt_version }}, ${{ matrix.config.arch }}) (map[arch:x64 os:windows-latest qt_arch:win64_msvc2022_64], 2.0.11) (push) Waiting to run
PR #23620.
This commit is contained in:
parent
25224f6050
commit
57c99b54c8
@ -1102,10 +1102,11 @@ bool SessionImpl::setCategoryOptions(const QString &categoryName, const Category
|
||||
|
||||
bool SessionImpl::removeCategory(const QString &name)
|
||||
{
|
||||
const QString parentCategory = parentCategoryName(name);
|
||||
for (TorrentImpl *const torrent : asConst(m_torrents))
|
||||
{
|
||||
if (torrent->belongsToCategory(name))
|
||||
torrent->setCategory(u""_s);
|
||||
torrent->setCategory(parentCategory);
|
||||
}
|
||||
|
||||
// remove stored category and its subcategories if exist
|
||||
|
||||
Loading…
Reference in New Issue
Block a user