qml: follow-up fix for offline-signing pre-segwit tx
follow-up 3cec6cdcfb
This commit is contained in:
@@ -328,7 +328,7 @@ Item {
|
|||||||
dialog.accepted.connect(function() {
|
dialog.accepted.connect(function() {
|
||||||
if (!canComplete) {
|
if (!canComplete) {
|
||||||
if (Daemon.currentWallet.isWatchOnly) {
|
if (Daemon.currentWallet.isWatchOnly) {
|
||||||
dialog.finalizer.save()
|
dialog.finalizer.saveOrShow()
|
||||||
} else {
|
} else {
|
||||||
dialog.finalizer.sign()
|
dialog.finalizer.sign()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -343,15 +343,15 @@ class QETxFinalizer(TxFeeSlider):
|
|||||||
self.validChanged.emit()
|
self.validChanged.emit()
|
||||||
|
|
||||||
@pyqtSlot()
|
@pyqtSlot()
|
||||||
def save(self):
|
def saveOrShow(self):
|
||||||
if not self._valid or not self._tx or not self._tx.txid():
|
if not self._valid or not self._tx:
|
||||||
self._logger.debug('no valid tx or no txid')
|
self._logger.debug('no valid tx')
|
||||||
return
|
return
|
||||||
|
|
||||||
saved = False
|
saved = False
|
||||||
if self._wallet.save_tx(self._tx):
|
if self._tx.txid():
|
||||||
saved = True
|
if self._wallet.save_tx(self._tx):
|
||||||
# self.finishedSave.emit(self._tx.txid())
|
saved = True
|
||||||
|
|
||||||
self.finished.emit(False, saved, self._tx.is_complete())
|
self.finished.emit(False, saved, self._tx.is_complete())
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user