Browse Source

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 .
reviewable/pr4617/r1
LittleVulpix 8 years ago committed by GitHub
parent
commit
5af1b4af73
  1. 1
      src/widget/form/profileform.cpp

1
src/widget/form/profileform.cpp

@ -512,6 +512,7 @@ void ProfileForm::onRegisterButtonClicked() @@ -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();

Loading…
Cancel
Save