1
0
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:
Diadlo 2015-12-31 00:27:15 +03:00 committed by Polshakov Dmitry
parent 65ab1f4e14
commit fc2a572309
3 changed files with 1 additions and 3 deletions

View File

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

View File

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

View File

@ -80,7 +80,6 @@ private slots:
void onChangePassClicked();
void onAvatarClicked();
void showProfilePictureContextMenu(const QPoint &point);
void onRegisterButtonClicked();
private: