From 46edf97144b9ffdee48713c471a0045c2129de6d Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Tue, 4 Dec 2018 10:02:32 -0800 Subject: [PATCH] Prevent multiple reply to addresses --- README.md | 6 +++--- src/sendtab.cpp | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index e73de7f..9da9d3a 100644 --- a/README.md +++ b/README.md @@ -10,14 +10,14 @@ Head over to the releases page and grab the latest installers or binary. https:/ If you are on Debian/Ubuntu, please download the `.deb` package and install it. ``` -sudo dpkg -i linux-deb-zec-qt-wallet-v0.5.1.deb +sudo dpkg -i linux-deb-zec-qt-wallet-v0.5.2.deb sudo apt install -f ``` Or you can download and run the binaries directly. ``` -tar -xvf zec-qt-wallet-v0.5.1.tar.gz -./zec-qt-wallet-v0.5.1/zec-qt-wallet +tar -xvf zec-qt-wallet-v0.5.2.tar.gz +./zec-qt-wallet-v0.5.2/zec-qt-wallet ``` ### Windows diff --git a/src/sendtab.cpp b/src/sendtab.cpp index 435a167..d183395 100644 --- a/src/sendtab.cpp +++ b/src/sendtab.cpp @@ -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);