mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 08:27:24 -06:00
Add save path and editing to WebUI new category dialog
This commit is contained in:
committed by
sledgehammer999
parent
c28cbe0a74
commit
c3f002a544
@@ -1210,10 +1210,8 @@ void TorrentHandle::setName(const QString &name)
|
||||
bool TorrentHandle::setCategory(const QString &category)
|
||||
{
|
||||
if (m_category != category) {
|
||||
if (!category.isEmpty()) {
|
||||
if (!Session::isValidCategoryName(category) || !m_session->categories().contains(category))
|
||||
return false;
|
||||
}
|
||||
if (!category.isEmpty() && !m_session->categories().contains(category))
|
||||
return false;
|
||||
|
||||
QString oldCategory = m_category;
|
||||
m_category = category;
|
||||
|
||||
Reference in New Issue
Block a user