Prevent multiple reply to addresses

This commit is contained in:
Aditya Kulkarni
2018-12-04 10:02:32 -08:00
parent 7540e8fb54
commit 46edf97144
2 changed files with 7 additions and 3 deletions

View File

@@ -301,6 +301,10 @@ void MainWindow::memoButtonClicked(int number) {
if (replyTo.isEmpty())
return;
}
auto curText = memoDialog.memoTxt->toPlainText();
if (curText.endsWith(replyTo))
return;
memoDialog.memoTxt->setPlainText(memoDialog.memoTxt->toPlainText() +
"\n" + tr("Reply to") + ":\n" + replyTo);