mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Simplify code
This commit is contained in:
parent
39c34078d6
commit
16bc0531f4
2 changed files with 5 additions and 6 deletions
|
@ -308,8 +308,7 @@ namespace
|
|||
|
||||
friend bool operator==(const TriStateBoolOption &option, const QString &arg)
|
||||
{
|
||||
const QStringList parts = arg.split(u'=');
|
||||
return parts[0] == option.fullParameter();
|
||||
return arg.section(u'=', 0, 0) == option.fullParameter();
|
||||
}
|
||||
|
||||
bool m_defaultValue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue