mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-28 02:30:05 +00:00
Fixed an uninitialised variable in OnlineUnlockStatus
This commit is contained in:
parent
0ee2398eb5
commit
0f01433773
2 changed files with 6 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue