mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 06:28:03 -06:00
Merge pull request #7490 from glassez/category-path
Allow to set explicit save path for Category from GUI
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user