From 5af1b4af73d05e8da4bbc174410f0854a810ecd6 Mon Sep 17 00:00:00 2001 From: LittleVulpix Date: Fri, 1 Sep 2017 20:12:52 +0200 Subject: [PATCH] fix(toxme): Remove HTML tags from ID to un-break toxme integration Due to the colours, the current implementation sends a bunch of html tags along with the ID, which obviously isn't desirable. To remove these tags, I am using the same implementation as in copyIdClicked . --- src/widget/form/profileform.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/widget/form/profileform.cpp b/src/widget/form/profileform.cpp index 92d21cbe5..6c8528fd6 100644 --- a/src/widget/form/profileform.cpp +++ b/src/widget/form/profileform.cpp @@ -512,6 +512,7 @@ void ProfileForm::onRegisterButtonClicked() bodyUI->toxmeUpdateButton->setText(tr("Update (processing)")); QString id = toxId->text(); + id.remove(QRegularExpression("<[^>]*>")); QString bio = bodyUI->toxmeBio->text(); QString server = bodyUI->toxmeServersList->currentText(); bool privacy = bodyUI->toxmePrivacy->isChecked();