From 679f2fe2b1d3a4d59b89937969a7eb5e0ae6074b Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 21 Aug 2015 07:58:50 +0200 Subject: [PATCH] add safety warning for watching only wallets --- gui/qt/main_window.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py index ae3e7c9c..8939c354 100644 --- a/gui/qt/main_window.py +++ b/gui/qt/main_window.py @@ -256,6 +256,13 @@ class ElectrumWindow(QMainWindow): self.clear_receive_tab() self.update_receive_tab() self.show() + if self.wallet.is_watching_only(): + msg = ' '.join([ + _("This wallet is watching-only."), + _("This means you will not be able to spend Bitcoins with it."), + _("Make sure you own the seed phrase or the private keys, before you request Bitcoins to be sent to this wallet.") + ]) + QMessageBox.warning(self, _('Information'), msg, _('OK')) run_hook('load_wallet', wallet, self) def import_old_contacts(self):