From bdc02677ec776ceb28802a522ac9378d48510e85 Mon Sep 17 00:00:00 2001 From: "Jerry (Xinyu Hou)" Date: Fri, 30 Oct 2015 11:57:12 -0700 Subject: [PATCH] Add trial edition type #4716 --- src/gui/src/EditionType.h | 1 + src/gui/src/MainWindow.cpp | 3 +++ src/gui/src/PluginWizardPage.cpp | 3 +-- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/gui/src/EditionType.h b/src/gui/src/EditionType.h index ec465a6c..2229cd23 100644 --- a/src/gui/src/EditionType.h +++ b/src/gui/src/EditionType.h @@ -21,6 +21,7 @@ enum qEditionType { Basic, Pro, + Trial, Unknown }; diff --git a/src/gui/src/MainWindow.cpp b/src/gui/src/MainWindow.cpp index 99cd9336..572695bc 100644 --- a/src/gui/src/MainWindow.cpp +++ b/src/gui/src/MainWindow.cpp @@ -992,6 +992,9 @@ void MainWindow::setEdition(int type) else if (type == Pro) { title = "Synergy Pro"; } + else if (type == Trial) { + title = "Synergy Trial"; + } else { title = "Synergy (UNREGISTERED)"; } diff --git a/src/gui/src/PluginWizardPage.cpp b/src/gui/src/PluginWizardPage.cpp index ecbc26e4..ace607da 100644 --- a/src/gui/src/PluginWizardPage.cpp +++ b/src/gui/src/PluginWizardPage.cpp @@ -64,8 +64,7 @@ void PluginWizardPage::initializePage() { QWizardPage::initializePage(); - if (m_Edition == Unknown || - m_Edition == Basic) { + if (m_Edition != Pro) { updateStatus(tr("Setup complete.")); showFinished(); return;