#5461 Caught all exceptions for activation

This commit is contained in:
Jerry (Xinyu Hou) 2016-07-12 05:54:47 -07:00
parent 2ed3d26817
commit 0034ca4b76
2 changed files with 7 additions and 3 deletions

View File

@ -32,5 +32,10 @@ void ActivationNotifier::setIdentity(QString identity)
void ActivationNotifier::notify() void ActivationNotifier::notify()
{ {
CoreInterface coreInterface; CoreInterface coreInterface;
try {
coreInterface.notifyActivation(m_Identity); coreInterface.notifyActivation(m_Identity);
}
catch (...) {
// catch all exceptions and fails silently
}
} }

View File

@ -243,8 +243,7 @@ void SetupWizard::reject()
} }
// treat cancel as skip // treat cancel as skip
CoreInterface coreInterface; notifyActivation("skip:unknown");
coreInterface.notifyActivation("skip:unknown");
QWizard::reject(); QWizard::reject();
} }