diff --git a/src/gui/src/PluginWizardPage.cpp b/src/gui/src/PluginWizardPage.cpp index 9c2994a6..331d6a0c 100644 --- a/src/gui/src/PluginWizardPage.cpp +++ b/src/gui/src/PluginWizardPage.cpp @@ -22,16 +22,18 @@ #include "FileSysClient.h" #include "WebClient.h" #include "PluginManager.h" +#include "MainWindow.h" #include #include +#include -PluginWizardPage::PluginWizardPage(AppConfig& appConfig, QWidget *parent) : +PluginWizardPage::PluginWizardPage(MainWindow& mainWindow, QWidget *parent) : QWizardPage(parent), m_Finished(false), m_pFileSysClient(NULL), m_pSslCertificate(NULL), - m_AppConfig(appConfig) + m_mainWindow(mainWindow) { setupUi(this); @@ -77,14 +79,18 @@ void PluginWizardPage::queryPluginDone() showFinished(); } else { + m_mainWindow.stopSynergy(); + m_mainWindow.delay(5); copyPlugins(); + m_mainWindow.startSynergy(); + m_mainWindow.delay(5); } } void PluginWizardPage::finished() { // TODO: we should check if ns plugin exists - m_AppConfig.setCryptoEnabled(true); + m_mainWindow.appConfig().setCryptoEnabled(true); updateStatus(tr("Plugins installed successfully.")); showFinished(); diff --git a/src/gui/src/PluginWizardPage.h b/src/gui/src/PluginWizardPage.h index dbd834b7..8b2006b7 100644 --- a/src/gui/src/PluginWizardPage.h +++ b/src/gui/src/PluginWizardPage.h @@ -27,13 +27,14 @@ class FileSysClient; class WebClient; class SslCertificate; +class MainWindow; class PluginWizardPage : public QWizardPage, public Ui::PluginWizardPage { Q_OBJECT public: - PluginWizardPage(AppConfig& appConfig, QWidget *parent = 0); + PluginWizardPage(MainWindow& mainWindow, QWidget *parent = 0); ~PluginWizardPage(); void setFinished(bool b) { m_Finished = b; } @@ -66,6 +67,6 @@ private: PluginManager m_PluginManager; SslCertificate* m_pSslCertificate; QThread* m_pThread; - AppConfig& m_AppConfig; + MainWindow& m_mainWindow; }; #endif // PLUGINWIZARDPAGE_H diff --git a/src/gui/src/SetupWizard.cpp b/src/gui/src/SetupWizard.cpp index b4414142..5bb400fb 100644 --- a/src/gui/src/SetupWizard.cpp +++ b/src/gui/src/SetupWizard.cpp @@ -30,7 +30,7 @@ SetupWizard::SetupWizard(MainWindow& mainWindow, bool startMain) : m_Edition(Unknown) { setupUi(this); - m_pPluginPage = new PluginWizardPage(mainWindow.appConfig()); + m_pPluginPage = new PluginWizardPage(mainWindow); addPage(m_pPluginPage); #if defined(Q_OS_MAC)