Browse Source

Remove possible double check of the same thing.

adaptive-webui-19844
sledgehammer999 8 years ago
parent
commit
4ab117d946
No known key found for this signature in database
GPG Key ID: 6E4A2D025B7CC9A2
  1. 9
      src/base/searchengine.cpp

9
src/base/searchengine.cpp

@ -623,20 +623,15 @@ void SearchEngine::parseVersionInfo(const QByteArray &info) @@ -623,20 +623,15 @@ void SearchEngine::parseVersionInfo(const QByteArray &info)
if (!pluginName.endsWith(":")) continue;
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(), {});
if (version != PluginVersion()) {
if (version == PluginVersion()) continue;
dataCorrect = true;
if (isUpdateNeeded(pluginName, version)) {
qDebug("Plugin: %s is outdated", qPrintable(pluginName));
updateInfo[pluginName] = version;
}
}
}
if (!dataCorrect)
emit checkForUpdatesFailed(tr("An incorrect update info received."));

Loading…
Cancel
Save