mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-11-28 21:38:51 +03:00
Fix wrong type passed to arg()
This commit is contained in:
parent
d52c6230e9
commit
ee030cc4eb
1 changed files with 6 additions and 3 deletions
|
@ -518,10 +518,13 @@ void SearchPluginManager::parseVersionInfo(const QByteArray &info)
|
|||
}
|
||||
}
|
||||
|
||||
if (numCorrectData < lines.size())
|
||||
emit checkForUpdatesFailed(tr("Incorrect update info received for %1 out of %2 plugins.").arg((lines.size() - numCorrectData), lines.size()));
|
||||
else
|
||||
if (numCorrectData < lines.size()) {
|
||||
emit checkForUpdatesFailed(tr("Incorrect update info received for %1 out of %2 plugins.")
|
||||
.arg(QString::number(lines.size() - numCorrectData), QString::number(lines.size())));
|
||||
}
|
||||
else {
|
||||
emit checkForUpdatesFinished(updateInfo);
|
||||
}
|
||||
}
|
||||
|
||||
bool SearchPluginManager::isUpdateNeeded(QString pluginName, PluginVersion newVersion) const
|
||||
|
|
Loading…
Reference in a new issue