Cleanup reply to field in memo
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QPushButton" name="btnInsertFrom">
|
<widget class="QPushButton" name="btnInsertFrom">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Add From Address</string>
|
<string>Include Reply Address</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
@@ -294,8 +294,14 @@ void MainWindow::memoButtonClicked(int number) {
|
|||||||
|
|
||||||
// Insert From Address button
|
// Insert From Address button
|
||||||
QObject::connect(memoDialog.btnInsertFrom, &QPushButton::clicked, [=] () {
|
QObject::connect(memoDialog.btnInsertFrom, &QPushButton::clicked, [=] () {
|
||||||
|
QString replyTo = ui->inputsCombo->currentText();
|
||||||
|
if (!Settings::isZAddress(replyTo)) {
|
||||||
|
replyTo = rpc->getDefaultSaplingAddress();
|
||||||
|
if (replyTo.isEmpty())
|
||||||
|
return;
|
||||||
|
}
|
||||||
memoDialog.memoTxt->setPlainText(memoDialog.memoTxt->toPlainText() +
|
memoDialog.memoTxt->setPlainText(memoDialog.memoTxt->toPlainText() +
|
||||||
"\n" + tr("From") + ":\n" + ui->inputsCombo->currentText());
|
"\n" + tr("Reply to") + ":\n" + replyTo);
|
||||||
});
|
});
|
||||||
|
|
||||||
memoDialog.memoTxt->setPlainText(currentMemo);
|
memoDialog.memoTxt->setPlainText(currentMemo);
|
||||||
|
|||||||
Reference in New Issue
Block a user