commit b40f3571e80a00c0f349c406e430899566154a6b
parent 97ffa93fcfe7865ca64b124d2a0f9957e9d24f0c
Author: ThomasV <thomasv@gitorious>
Date: Fri, 7 Aug 2015 18:59:50 +0200
tx window: do not always set prompt_if_unsaved
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py
@@ -2239,7 +2239,7 @@ class ElectrumWindow(QMainWindow):
tx = self.tx_from_text(data)
if not tx:
return
- self.show_transaction(tx)
+ self.show_transaction(tx, prompt_if_unsaved=True)
def read_tx_from_file(self):
@@ -2261,7 +2261,7 @@ class ElectrumWindow(QMainWindow):
return
tx = self.tx_from_text(text)
if tx:
- self.show_transaction(tx)
+ self.show_transaction(tx, prompt_if_unsaved=True)
def do_process_from_file(self):
tx = self.read_tx_from_file()
diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py
@@ -143,7 +143,7 @@ class TxDialog(QDialog):
def sign(self):
def sign_done(success):
self.sign_button.setDisabled(False)
- self.prompt_if_unsaved = True
+ self.prompt_if_unsaved = False
self.saved = False
self.update()
self.sign_button.setDisabled(True)