mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-11 15:27:54 +00:00
[searchengine] Fix invalid plugin message
This commit is contained in:
parent
79617949c1
commit
fc65ba4ced
@ -248,6 +248,10 @@ bool engineSelectDlg::isUpdateNeeded(QString plugin_name, qreal new_version) con
|
|||||||
void engineSelectDlg::installPlugin(QString path, QString plugin_name) {
|
void engineSelectDlg::installPlugin(QString path, QString plugin_name) {
|
||||||
qDebug("Asked to install plugin at %s", qPrintable(path));
|
qDebug("Asked to install plugin at %s", qPrintable(path));
|
||||||
qreal new_version = SearchEngine::getPluginVersion(path);
|
qreal new_version = SearchEngine::getPluginVersion(path);
|
||||||
|
if (new_version == 0.0) {
|
||||||
|
QMessageBox::warning(this, tr("Invalid plugin"), tr("The search engine plugin is invalid, please contact the author."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
qDebug("Version to be installed: %.2f", new_version);
|
qDebug("Version to be installed: %.2f", new_version);
|
||||||
if (!isUpdateNeeded(plugin_name, new_version)) {
|
if (!isUpdateNeeded(plugin_name, new_version)) {
|
||||||
qDebug("Apparently update is not needed, we have a more recent version");
|
qDebug("Apparently update is not needed, we have a more recent version");
|
||||||
|
Loading…
Reference in New Issue
Block a user