diff --git a/widget/form/settingsform.cpp b/widget/form/settingsform.cpp index 8bd2f1060..5417b62d7 100644 --- a/widget/form/settingsform.cpp +++ b/widget/form/settingsform.cpp @@ -118,8 +118,10 @@ void SettingsForm::onEnableIPv6Updated() void SettingsForm::copyIdClicked() { - id.selectAll();; - QApplication::clipboard()->setText(id.toPlainText()); + id.selectAll(); + QString txt = id.toPlainText(); + txt.replace('\n',""); + QApplication::clipboard()->setText(txt); } void SettingsForm::onUseTranslationUpdated()