mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 19:40:18 -07:00
[searchengine] Fix invalid plugin message
This commit is contained in:
parent
79617949c1
commit
fc65ba4ced
1 changed files with 4 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue