Browse Source

Fixed an uninitialised variable in OnlineUnlockStatus

tags/2021-05-28
jules ed 9 years ago
parent
commit
bb56cb2573
2 changed files with 6 additions and 0 deletions
  1. +1
    -0
      modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockForm.cpp
  2. +5
    -0
      modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp

+ 1
- 0
modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockForm.cpp View File

@@ -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);


+ 5
- 0
modules/juce_tracktion_marketplace/marketplace/juce_OnlineUnlockStatus.cpp View File

@@ -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";


Loading…
Cancel
Save