bool SubscriptionManager::activateSerial(const QString& serial) { CoreInterface coreInterface; try { coreInterface.activateSerial(serial); } catch (std::exception& e) { showErrorDialog(e.what()); return false; } return true; }
bool SubscriptionManager::activateSerial(const QString& serial) { m_Edition = Unknown; persistDirectory(); CoreInterface coreInterface; QString output; try { output = coreInterface.activateSerial(serial); } catch (std::exception& e) { m_ErrorMessage = e.what(); checkError(m_ErrorMessage); return false; } checkOutput(output); return true; }