diff options
| author | Jonas Schnelli <[email protected]> | 2018-03-06 12:26:40 +0800 |
|---|---|---|
| committer | Jonas Schnelli <[email protected]> | 2018-03-26 18:40:26 +0700 |
| commit | 12d8d2681e34a191f5d82f15448f8c4c9a14f6d0 (patch) | |
| tree | 8845e3ca6c3abab36ae926f6385b20581960cc2d /src/qt/bitcoingui.cpp | |
| parent | Qt: QComboBox::setVisible doesn't work in toolbars, so defer adding it at all... (diff) | |
| download | discoin-12d8d2681e34a191f5d82f15448f8c4c9a14f6d0.tar.xz discoin-12d8d2681e34a191f5d82f15448f8c4c9a14f6d0.zip | |
Qt: When multiple wallets are used, include in notifications the name
Diffstat (limited to 'src/qt/bitcoingui.cpp')
| -rw-r--r-- | src/qt/bitcoingui.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/qt/bitcoingui.cpp b/src/qt/bitcoingui.cpp index 6791a4a16..249c27ad6 100644 --- a/src/qt/bitcoingui.cpp +++ b/src/qt/bitcoingui.cpp @@ -1000,12 +1000,15 @@ void BitcoinGUI::showEvent(QShowEvent *event) } #ifdef ENABLE_WALLET -void BitcoinGUI::incomingTransaction(const QString& date, int unit, const CAmount& amount, const QString& type, const QString& address, const QString& label) +void BitcoinGUI::incomingTransaction(const QString& date, int unit, const CAmount& amount, const QString& type, const QString& address, const QString& label, const QString& walletName) { // On new transaction, make an info balloon QString msg = tr("Date: %1\n").arg(date) + - tr("Amount: %1\n").arg(BitcoinUnits::formatWithUnit(unit, amount, true)) + - tr("Type: %1\n").arg(type); + tr("Amount: %1\n").arg(BitcoinUnits::formatWithUnit(unit, amount, true)); + if (WalletModel::isMultiwallet() && !walletName.isEmpty()) { + msg += tr("Wallet: %1\n").arg(walletName); + } + msg += tr("Type: %1\n").arg(type); if (!label.isEmpty()) msg += tr("Label: %1\n").arg(label); else if (!address.isEmpty()) |