mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Merge pull request #7490 from glassez/category-path
Allow to set explicit save path for Category from GUI
This commit is contained in:
commit
66a6674cbc
14 changed files with 363 additions and 84 deletions
|
@ -699,9 +699,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
|
||||
|
@ -747,6 +747,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