1
0

qml: follow-up fix for offline-signing pre-segwit tx

follow-up 3cec6cdcfb
This commit is contained in:
SomberNight
2023-04-21 17:14:49 +00:00
parent 2be71c2dcc
commit 2ec4758a12
2 changed files with 7 additions and 7 deletions

View File

@@ -328,7 +328,7 @@ Item {
dialog.accepted.connect(function() {
if (!canComplete) {
if (Daemon.currentWallet.isWatchOnly) {
dialog.finalizer.save()
dialog.finalizer.saveOrShow()
} else {
dialog.finalizer.sign()
}

View File

@@ -343,15 +343,15 @@ class QETxFinalizer(TxFeeSlider):
self.validChanged.emit()
@pyqtSlot()
def save(self):
if not self._valid or not self._tx or not self._tx.txid():
self._logger.debug('no valid tx or no txid')
def saveOrShow(self):
if not self._valid or not self._tx:
self._logger.debug('no valid tx')
return
saved = False
if self._wallet.save_tx(self._tx):
saved = True
# self.finishedSave.emit(self._tx.txid())
if self._tx.txid():
if self._wallet.save_tx(self._tx):
saved = True
self.finished.emit(False, saved, self._tx.is_complete())