mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 14:38:04 -06:00
Simplify code
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user