HTML escape the wallet name in more dialogs and notifications
This commit is contained in:
parent
189c19e012
commit
1770a972d4
3 changed files with 3 additions and 3 deletions
|
@ -283,7 +283,7 @@ void SendCoinsDialog::on_sendButton_clicked()
|
||||||
// generate amount string with wallet name in case of multiwallet
|
// generate amount string with wallet name in case of multiwallet
|
||||||
QString amount = BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), rcp.amount);
|
QString amount = BitcoinUnits::formatWithUnit(model->getOptionsModel()->getDisplayUnit(), rcp.amount);
|
||||||
if (model->isMultiwallet()) {
|
if (model->isMultiwallet()) {
|
||||||
amount.append(tr(" from wallet '%1'").arg(model->getWalletName()));
|
amount.append(tr(" from wallet '%1'").arg(GUIUtil::HtmlEscape(model->getWalletName())));
|
||||||
}
|
}
|
||||||
|
|
||||||
// generate address string
|
// generate address string
|
||||||
|
|
|
@ -75,7 +75,7 @@ void WalletController::closeWallet(WalletModel* wallet_model, QWidget* parent)
|
||||||
{
|
{
|
||||||
QMessageBox box(parent);
|
QMessageBox box(parent);
|
||||||
box.setWindowTitle(tr("Close wallet"));
|
box.setWindowTitle(tr("Close wallet"));
|
||||||
box.setText(tr("Are you sure you wish to close wallet <i>%1</i>?").arg(wallet_model->getDisplayName()));
|
box.setText(tr("Are you sure you wish to close wallet <i>%1</i>?").arg(GUIUtil::HtmlEscape(wallet_model->getDisplayName())));
|
||||||
box.setInformativeText(tr("Closing the wallet for too long can result in having to resync the entire chain if pruning is enabled."));
|
box.setInformativeText(tr("Closing the wallet for too long can result in having to resync the entire chain if pruning is enabled."));
|
||||||
box.setStandardButtons(QMessageBox::Yes|QMessageBox::Cancel);
|
box.setStandardButtons(QMessageBox::Yes|QMessageBox::Cancel);
|
||||||
box.setDefaultButton(QMessageBox::Yes);
|
box.setDefaultButton(QMessageBox::Yes);
|
||||||
|
|
|
@ -172,7 +172,7 @@ void WalletView::processNewTransaction(const QModelIndex& parent, int start, int
|
||||||
QString address = ttm->data(index, TransactionTableModel::AddressRole).toString();
|
QString address = ttm->data(index, TransactionTableModel::AddressRole).toString();
|
||||||
QString label = ttm->data(index, TransactionTableModel::LabelRole).toString();
|
QString label = ttm->data(index, TransactionTableModel::LabelRole).toString();
|
||||||
|
|
||||||
Q_EMIT incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address, label, walletModel->getWalletName());
|
Q_EMIT incomingTransaction(date, walletModel->getOptionsModel()->getDisplayUnit(), amount, type, address, label, GUIUtil::HtmlEscape(walletModel->getWalletName()));
|
||||||
}
|
}
|
||||||
|
|
||||||
void WalletView::gotoOverviewPage()
|
void WalletView::gotoOverviewPage()
|
||||||
|
|
Loading…
Reference in a new issue