|
|
@ -148,7 +148,6 @@ class TxDialog(QWidget): |
|
|
|
is_relevant, is_mine, v, fee = self.wallet.get_wallet_delta(self.tx) |
|
|
|
tx_hash = self.tx.hash() |
|
|
|
desc = self.desc |
|
|
|
have_action = False |
|
|
|
time_str = None |
|
|
|
|
|
|
|
if self.tx.is_complete(): |
|
|
@ -164,13 +163,10 @@ class TxDialog(QWidget): |
|
|
|
status = _("%d confirmations")%conf |
|
|
|
self.broadcast_button.hide() |
|
|
|
else: |
|
|
|
conf = 0 |
|
|
|
self.broadcast_button.show() |
|
|
|
# cannot broadcast when offline |
|
|
|
if self.parent.network is None: |
|
|
|
self.broadcast_button.setEnabled(False) |
|
|
|
else: |
|
|
|
have_action = True |
|
|
|
else: |
|
|
|
s, r = self.tx.signature_count() |
|
|
|
status = _("Unsigned") if s == 0 else _('Partially signed') + ' (%d/%d)'%(s,r) |
|
|
@ -179,7 +175,6 @@ class TxDialog(QWidget): |
|
|
|
|
|
|
|
if self.wallet.can_sign(self.tx): |
|
|
|
self.sign_button.show() |
|
|
|
have_action = True |
|
|
|
else: |
|
|
|
self.sign_button.hide() |
|
|
|
|
|
|
|