tx window: do not always set prompt_if_unsaved

This commit is contained in:
ThomasV 2015-08-07 18:59:50 +02:00
parent 97ffa93fcf
commit b40f3571e8
2 changed files with 3 additions and 3 deletions

View file

@ -2239,7 +2239,7 @@ class ElectrumWindow(QMainWindow):
tx = self.tx_from_text(data) tx = self.tx_from_text(data)
if not tx: if not tx:
return return
self.show_transaction(tx) self.show_transaction(tx, prompt_if_unsaved=True)
def read_tx_from_file(self): def read_tx_from_file(self):
@ -2261,7 +2261,7 @@ class ElectrumWindow(QMainWindow):
return return
tx = self.tx_from_text(text) tx = self.tx_from_text(text)
if tx: if tx:
self.show_transaction(tx) self.show_transaction(tx, prompt_if_unsaved=True)
def do_process_from_file(self): def do_process_from_file(self):
tx = self.read_tx_from_file() tx = self.read_tx_from_file()

View file

@ -143,7 +143,7 @@ class TxDialog(QDialog):
def sign(self): def sign(self):
def sign_done(success): def sign_done(success):
self.sign_button.setDisabled(False) self.sign_button.setDisabled(False)
self.prompt_if_unsaved = True self.prompt_if_unsaved = False
self.saved = False self.saved = False
self.update() self.update()
self.sign_button.setDisabled(True) self.sign_button.setDisabled(True)