mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Remove possible double check of the same thing.
This commit is contained in:
parent
d88f0f36e0
commit
4ab117d946
1 changed files with 6 additions and 11 deletions
|
@ -623,18 +623,13 @@ void SearchEngine::parseVersionInfo(const QByteArray &info)
|
||||||
if (!pluginName.endsWith(":")) continue;
|
if (!pluginName.endsWith(":")) continue;
|
||||||
|
|
||||||
pluginName.chop(1); // remove trailing ':'
|
pluginName.chop(1); // remove trailing ':'
|
||||||
bool ok;
|
|
||||||
qreal versionParseTest = list.last().toFloat(&ok);
|
|
||||||
qDebug("read line %s: %.2f", qPrintable(pluginName), versionParseTest);
|
|
||||||
if (!ok) continue;
|
|
||||||
|
|
||||||
PluginVersion version = PluginVersion::tryParse(list.last(), {});
|
PluginVersion version = PluginVersion::tryParse(list.last(), {});
|
||||||
if (version != PluginVersion()) {
|
if (version == PluginVersion()) continue;
|
||||||
dataCorrect = true;
|
|
||||||
if (isUpdateNeeded(pluginName, version)) {
|
dataCorrect = true;
|
||||||
qDebug("Plugin: %s is outdated", qPrintable(pluginName));
|
if (isUpdateNeeded(pluginName, version)) {
|
||||||
updateInfo[pluginName] = version;
|
qDebug("Plugin: %s is outdated", qPrintable(pluginName));
|
||||||
}
|
updateInfo[pluginName] = version;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue