mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-31 03:50:20 -07:00
Implement TorrentCategoryDialog class
This commit is contained in:
parent
8c58a69be6
commit
3ec992474d
14 changed files with 346 additions and 71 deletions
|
@ -698,9 +698,9 @@ QStringList Session::expandCategory(const QString &category)
|
|||
return result;
|
||||
}
|
||||
|
||||
QStringList Session::categories() const
|
||||
const QStringMap &Session::categories() const
|
||||
{
|
||||
return m_categories.keys();
|
||||
return m_categories;
|
||||
}
|
||||
|
||||
QString Session::categorySavePath(const QString &categoryName) const
|
||||
|
@ -746,6 +746,7 @@ bool Session::editCategory(const QString &name, const QString &savePath)
|
|||
if (categorySavePath(name) == savePath) return false;
|
||||
|
||||
m_categories[name] = savePath;
|
||||
m_storedCategories = map_cast(m_categories);
|
||||
if (isDisableAutoTMMWhenCategorySavePathChanged()) {
|
||||
foreach (TorrentHandle *const torrent, torrents())
|
||||
if (torrent->category() == name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue