Browse Source

Merge pull request #6734 from Chocobo1/plugin_connect

Fix signaling to checkForUpdatesFinished() failed
adaptive-webui-19844
Mike Tzou 8 years ago committed by GitHub
parent
commit
1808f0e614
  1. 5
      src/gui/search/pluginselectdlg.cpp
  2. 6
      src/gui/search/pluginselectdlg.h

5
src/gui/search/pluginselectdlg.cpp

@ -44,7 +44,6 @@
#include "base/utils/misc.h" #include "base/utils/misc.h"
#include "base/net/downloadmanager.h" #include "base/net/downloadmanager.h"
#include "base/net/downloadhandler.h" #include "base/net/downloadhandler.h"
#include "base/searchengine.h"
#include "ico.h" #include "ico.h"
#include "searchwidget.h" #include "searchwidget.h"
#include "pluginsourcedlg.h" #include "pluginsourcedlg.h"
@ -95,7 +94,7 @@ PluginSelectDlg::PluginSelectDlg(SearchEngine *pluginManager, QWidget *parent)
connect(m_pluginManager, SIGNAL(pluginInstallationFailed(QString, QString)), SLOT(pluginInstallationFailed(QString, QString))); connect(m_pluginManager, SIGNAL(pluginInstallationFailed(QString, QString)), SLOT(pluginInstallationFailed(QString, QString)));
connect(m_pluginManager, SIGNAL(pluginUpdated(QString)), SLOT(pluginUpdated(QString))); connect(m_pluginManager, SIGNAL(pluginUpdated(QString)), SLOT(pluginUpdated(QString)));
connect(m_pluginManager, SIGNAL(pluginUpdateFailed(QString, QString)), SLOT(pluginUpdateFailed(QString, QString))); connect(m_pluginManager, SIGNAL(pluginUpdateFailed(QString, QString)), SLOT(pluginUpdateFailed(QString, QString)));
connect(m_pluginManager, SIGNAL(checkForUpdatesFinished(QHash<QString, qreal>)), SLOT(checkForUpdatesFinished(QHash<QString, qreal>))); connect(m_pluginManager, &SearchEngine::checkForUpdatesFinished, this, &PluginSelectDlg::checkForUpdatesFinished);
connect(m_pluginManager, SIGNAL(checkForUpdatesFailed(QString)), SLOT(checkForUpdatesFailed(QString))); connect(m_pluginManager, SIGNAL(checkForUpdatesFailed(QString)), SLOT(checkForUpdatesFailed(QString)));
show(); show();
@ -388,7 +387,7 @@ void PluginSelectDlg::iconDownloadFailed(const QString &url, const QString &reas
qDebug("Could not download favicon: %s, reason: %s", qPrintable(url), qPrintable(reason)); qDebug("Could not download favicon: %s, reason: %s", qPrintable(url), qPrintable(reason));
} }
void PluginSelectDlg::checkForUpdatesFinished(const QHash<QString, qreal> &updateInfo) void PluginSelectDlg::checkForUpdatesFinished(const QHash<QString, PluginVersion> &updateInfo)
{ {
finishAsyncOp(); finishAsyncOp();
if (updateInfo.isEmpty()) { if (updateInfo.isEmpty()) {

6
src/gui/search/pluginselectdlg.h

@ -34,11 +34,11 @@
#include <QDialog> #include <QDialog>
#include "base/searchengine.h"
class QDropEvent; class QDropEvent;
class QTreeWidgetItem; class QTreeWidgetItem;
class SearchEngine;
namespace Ui namespace Ui
{ {
class PluginSelectDlg; class PluginSelectDlg;
@ -76,7 +76,7 @@ private slots:
void iconDownloaded(const QString &url, QString filePath); void iconDownloaded(const QString &url, QString filePath);
void iconDownloadFailed(const QString &url, const QString &reason); void iconDownloadFailed(const QString &url, const QString &reason);
void checkForUpdatesFinished(const QHash<QString, qreal> &updateInfo); void checkForUpdatesFinished(const QHash<QString, PluginVersion> &updateInfo);
void checkForUpdatesFailed(const QString &reason); void checkForUpdatesFailed(const QString &reason);
void pluginInstalled(const QString &name); void pluginInstalled(const QString &name);
void pluginInstallationFailed(const QString &name, const QString &reason); void pluginInstallationFailed(const QString &name, const QString &reason);

Loading…
Cancel
Save