mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
committed by
GitHub
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
|
||||
|
||||
Reference in New Issue
Block a user