Follow the parent category options

PR #19957.
Closes #19941.
This commit is contained in:
Vladimir Golovnev
2023-11-20 20:37:17 +03:00
committed by GitHub
parent 32fbacf615
commit a1c78a0455
9 changed files with 170 additions and 36 deletions

View File

@@ -1,6 +1,6 @@
/*
* Bittorrent Client using Qt and libtorrent.
* Copyright (C) 2021 Vladimir Golovnev <glassez@yandex.ru>
* Copyright (C) 2021-2023 Vladimir Golovnev <glassez@yandex.ru>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -67,12 +67,6 @@ QJsonObject BitTorrent::CategoryOptions::toJSON() const
};
}
bool BitTorrent::operator==(const BitTorrent::CategoryOptions::DownloadPathOption &left, const BitTorrent::CategoryOptions::DownloadPathOption &right)
{
return ((left.enabled == right.enabled)
&& (left.path == right.path));
}
bool BitTorrent::operator==(const BitTorrent::CategoryOptions &left, const BitTorrent::CategoryOptions &right)
{
return ((left.savePath == right.savePath)