fix for display of multiple sign up errors

This commit is contained in:
Stephen Birarda 2016-12-08 16:28:16 -08:00
parent b66ddbdbdb
commit 9445fc2898
2 changed files with 3 additions and 5 deletions

View file

@ -63,12 +63,10 @@ Item {
visible: false
text: qsTr("Username or password incorrect.")
text: qsTr("There was an unknown error while creating your account.")
wrapMode: Text.WordWrap
color: hifi.colors.redAccent
lineHeight: 1
lineHeightMode: Text.ProportionalHeight
horizontalAlignment: Text.AlignHCenter
horizontalAlignment: Text.AlignLeft
}
Column {

View file

@ -225,7 +225,7 @@ void LoginDialog::signupFailed(QNetworkReply& reply) {
errorStringList.append(QString("Password %1.").arg(errorStringFromAPIObject(dataObject[PASSWORD_DATA_KEY])));
}
emit handleSignupFailed(errorStringList.join(' '));
emit handleSignupFailed(errorStringList.join('\n'));
} else {
static const QString DEFAULT_SIGN_UP_FAILURE_MESSAGE = "There was an unknown error while creating your account. Please try again later.";
emit handleSignupFailed(DEFAULT_SIGN_UP_FAILURE_MESSAGE);