fix #7933
This commit is contained in:
@@ -348,12 +348,12 @@ class TxDialog(Factory.Popup):
|
|||||||
|
|
||||||
def remove_local_tx(self):
|
def remove_local_tx(self):
|
||||||
txid = self.tx.txid()
|
txid = self.tx.txid()
|
||||||
num_child_txs = len(self.wallet.get_depending_transactions(txid))
|
num_child_txs = len(self.wallet.abb.get_depending_transactions(txid))
|
||||||
question = _("Are you sure you want to remove this transaction?")
|
question = _("Are you sure you want to remove this transaction?")
|
||||||
if num_child_txs > 0:
|
if num_child_txs > 0:
|
||||||
question = (_("Are you sure you want to remove this transaction and {} child transactions?")
|
question = (
|
||||||
.format(num_child_txs))
|
_("Are you sure you want to remove this transaction and {} child transactions?")
|
||||||
|
.format(num_child_txs))
|
||||||
def on_prompt(b):
|
def on_prompt(b):
|
||||||
if b:
|
if b:
|
||||||
self.wallet.adb.remove_transaction(txid)
|
self.wallet.adb.remove_transaction(txid)
|
||||||
|
|||||||
Reference in New Issue
Block a user