mirror of
https://github.com/overte-org/overte.git
synced 2025-04-25 18:35:32 +02:00
fix for display of multiple sign up errors
This commit is contained in:
parent
b66ddbdbdb
commit
9445fc2898
2 changed files with 3 additions and 5 deletions
|
@ -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 {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue