add safety warning for watching only wallets

This commit is contained in:
ThomasV 2015-08-21 07:58:50 +02:00
parent 728dc85c84
commit 679f2fe2b1
1 changed files with 7 additions and 0 deletions

View File

@ -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):