#5657 Don't store activation email
This commit is contained in:
parent
fd8e778b2a
commit
743e96f277
|
@ -64,7 +64,8 @@ SOURCES += src/main.cpp \
|
||||||
src/ActivationNotifier.cpp \
|
src/ActivationNotifier.cpp \
|
||||||
src/ActivationDialog.cpp \
|
src/ActivationDialog.cpp \
|
||||||
src/CancelActivationDialog.cpp \
|
src/CancelActivationDialog.cpp \
|
||||||
src/FailedLoginDialog.cpp
|
src/FailedLoginDialog.cpp \
|
||||||
|
../lib/shared/SerialKey.cpp
|
||||||
HEADERS += src/MainWindow.h \
|
HEADERS += src/MainWindow.h \
|
||||||
src/AboutDialog.h \
|
src/AboutDialog.h \
|
||||||
src/ServerConfig.h \
|
src/ServerConfig.h \
|
||||||
|
@ -112,7 +113,8 @@ HEADERS += src/MainWindow.h \
|
||||||
src/ElevateMode.h \
|
src/ElevateMode.h \
|
||||||
src/ActivationDialog.h \
|
src/ActivationDialog.h \
|
||||||
src/CancelActivationDialog.h \
|
src/CancelActivationDialog.h \
|
||||||
src/FailedLoginDialog.h
|
src/FailedLoginDialog.h \
|
||||||
|
../lib/shared/SerialKey.h
|
||||||
RESOURCES += res/Synergy.qrc
|
RESOURCES += res/Synergy.qrc
|
||||||
RC_FILE = res/win/Synergy.rc
|
RC_FILE = res/win/Synergy.rc
|
||||||
macx {
|
macx {
|
||||||
|
|
|
@ -77,7 +77,7 @@ void ActivationDialog::accept()
|
||||||
if (!subscriptionManager.activateSerial(serialKey)) {
|
if (!subscriptionManager.activateSerial(serialKey)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
m_appConfig->setActivateEmail("");
|
|
||||||
notifyActivation("serial:" + m_appConfig->serialKey());
|
notifyActivation("serial:" + m_appConfig->serialKey());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -184,7 +184,6 @@ void AppConfig::saveSettings()
|
||||||
settings().setValue("elevateModeEnum", static_cast<int>(m_ElevateMode));
|
settings().setValue("elevateModeEnum", static_cast<int>(m_ElevateMode));
|
||||||
settings().setValue("autoConfigPrompted", m_AutoConfigPrompted);
|
settings().setValue("autoConfigPrompted", m_AutoConfigPrompted);
|
||||||
settings().setValue("edition", m_Edition);
|
settings().setValue("edition", m_Edition);
|
||||||
settings().setValue("activateEmail", m_ActivateEmail);
|
|
||||||
settings().setValue("cryptoEnabled", m_CryptoEnabled);
|
settings().setValue("cryptoEnabled", m_CryptoEnabled);
|
||||||
settings().setValue("autoHide", m_AutoHide);
|
settings().setValue("autoHide", m_AutoHide);
|
||||||
settings().setValue("serialKey", m_Serialkey);
|
settings().setValue("serialKey", m_Serialkey);
|
||||||
|
@ -245,13 +244,6 @@ void AppConfig::setEdition(int e) {
|
||||||
|
|
||||||
int AppConfig::edition() const { return m_Edition; }
|
int AppConfig::edition() const { return m_Edition; }
|
||||||
|
|
||||||
bool AppConfig::setActivateEmail(QString e) {
|
|
||||||
m_ActivateEmail = e;
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
|
|
||||||
QString AppConfig::activateEmail() { return m_ActivateEmail; }
|
|
||||||
|
|
||||||
bool AppConfig::setSerialKey(QString serial, QString& errorOut) {
|
bool AppConfig::setSerialKey(QString serial, QString& errorOut) {
|
||||||
if (serial.isEmpty()) {
|
if (serial.isEmpty()) {
|
||||||
errorOut = "Your serial key cannot be blank.";
|
errorOut = "Your serial key cannot be blank.";
|
||||||
|
|
|
@ -79,8 +79,6 @@ class AppConfig: public QObject
|
||||||
void setAutoConfigPrompted(bool prompted);
|
void setAutoConfigPrompted(bool prompted);
|
||||||
void setEdition(int e);
|
void setEdition(int e);
|
||||||
int edition() const;
|
int edition() const;
|
||||||
bool setActivateEmail(QString e);
|
|
||||||
QString activateEmail();
|
|
||||||
bool setSerialKey(QString serial, QString& error);
|
bool setSerialKey(QString serial, QString& error);
|
||||||
void clearSerialKey();
|
void clearSerialKey();
|
||||||
QString serialKey();
|
QString serialKey();
|
||||||
|
|
Loading…
Reference in New Issue