mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(toxme): Use format strings
This commit is contained in:
parent
65ab1f4e14
commit
fc2a572309
|
@ -367,6 +367,6 @@ QString Toxme::getErrorMessage(int errorCode)
|
|||
case -43:
|
||||
return QObject::tr("Internal lookup error. Please file a bug");
|
||||
default:
|
||||
return QObject::tr("Unknow error") + errorCode;
|
||||
return QObject::tr("Unknown error (%1)").arg(errorCode);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -458,7 +458,6 @@ void ProfileForm::onRegisterButtonClicked()
|
|||
QString errorMessage = Toxme::getErrorMessage(code);
|
||||
QMessageBox::warning(this, tr("Toxme error"), errorMessage, "Ok");
|
||||
}
|
||||
|
||||
bodyUI->toxmeRegisterButton->setEnabled(true);
|
||||
bodyUI->toxmeUpdateButton->setEnabled(true);
|
||||
bodyUI->toxmeRegisterButton->setText(tr("Register"));
|
||||
|
|
|
@ -80,7 +80,6 @@ private slots:
|
|||
void onChangePassClicked();
|
||||
void onAvatarClicked();
|
||||
void showProfilePictureContextMenu(const QPoint &point);
|
||||
|
||||
void onRegisterButtonClicked();
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue
Block a user