From d2d5b2306450032ae485909dc0c480d3c02b3596 Mon Sep 17 00:00:00 2001 From: Diadlo Date: Tue, 10 May 2016 23:29:11 +0300 Subject: [PATCH] feat(profileform): Added log toxme errors --- src/widget/form/profileform.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/widget/form/profileform.cpp b/src/widget/form/profileform.cpp index 18f0824f8..de0e679a0 100644 --- a/src/widget/form/profileform.cpp +++ b/src/widget/form/profileform.cpp @@ -520,7 +520,9 @@ void ProfileForm::onRegisterButtonClicked() break; default: QString errorMessage = Toxme::getErrorMessage(code); - GUI::showWarning(tr("Toxme error"), errorMessage); + qWarning() << errorMessage; + QString translated = Toxme::translateErrorMessage(code); + GUI::showWarning(tr("Toxme error"), translated); } bodyUI->toxmeRegisterButton->setEnabled(true);