Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(toxme): Use format strings
Browse files Browse the repository at this point in the history
  • Loading branch information
Diadlo committed Apr 12, 2016
1 parent 65ab1f4 commit fc2a572
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/net/toxme.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
1 change: 0 additions & 1 deletion src/widget/form/profileform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
1 change: 0 additions & 1 deletion src/widget/form/profileform.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ private slots:
void onChangePassClicked();
void onAvatarClicked();
void showProfilePictureContextMenu(const QPoint &point);

void onRegisterButtonClicked();

private:
Expand Down

0 comments on commit fc2a572

Please sign in to comment.