diff --git a/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockForm.cpp b/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockForm.cpp index 0ae24990ee..283fa81b8f 100644 --- a/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockForm.cpp +++ b/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockForm.cpp @@ -39,6 +39,7 @@ struct OnlineUnlockForm::OverlayComp : public Component, { OverlayComp (OnlineUnlockForm& f) : Thread (String()), form (f) { + result.succeeded = false; email = form.emailBox.getText(); password = form.passwordBox.getText(); addAndMakeVisible (spinner); diff --git a/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp b/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp index 4ec731c100..8298ffde2a 100644 --- a/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp +++ b/modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp @@ -405,6 +405,10 @@ OnlineUnlockStatus::UnlockResult OnlineUnlockStatus::handleXmlReply (XmlElement const String keyText (keyNode->getAllSubText().trim()); r.succeeded = keyText.length() > 10 && applyKeyFile (keyText); } + else + { + r.succeeded = false; + } if (xml.hasTagName ("MESSAGE")) r.informativeMessage = xml.getStringAttribute ("message").trim(); @@ -425,6 +429,7 @@ OnlineUnlockStatus::UnlockResult OnlineUnlockStatus::handleXmlReply (XmlElement OnlineUnlockStatus::UnlockResult OnlineUnlockStatus::handleFailedConnection() { UnlockResult r; + r.succeeded = false; r.errorMessage = TRANS("Couldn't connect to XYZ").replace ("XYZ", getWebsiteName()) + "...\n\n";