Browse Source

Don't show nonwallet_custom_change_warning in Qt GUI for non-cj sends

master
Kristaps Kaupe 4 years ago
parent
commit
c5456e4a6a
No known key found for this signature in database
GPG Key ID: 33E472FE870C7E5D
  1. 4
      scripts/joinmarket-qt.py

4
scripts/joinmarket-qt.py

@ -1211,6 +1211,7 @@ class SpendTab(QWidget):
if reply == QMessageBox.No: if reply == QMessageBox.No:
return False return False
if makercount > 0:
engine_recognized = True engine_recognized = True
try: try:
change_addr_type = mainWindow.wallet_service.get_outtype( change_addr_type = mainWindow.wallet_service.get_outtype(
@ -1218,8 +1219,7 @@ class SpendTab(QWidget):
except EngineError: except EngineError:
engine_recognized = False engine_recognized = False
wallet_type = mainWindow.wallet_service.get_txtype() wallet_type = mainWindow.wallet_service.get_txtype()
if (not engine_recognized) or ( if not engine_recognized or change_addr_type != wallet_type:
change_addr_type != wallet_type and makercount > 0):
reply = JMQtMessageBox(self, reply = JMQtMessageBox(self,
nonwallet_custom_change_warning, nonwallet_custom_change_warning,
mbtype='question', mbtype='question',

Loading…
Cancel
Save