|
|
@ -1549,7 +1549,13 @@ class ElectrumWindow(QMainWindow): |
|
|
|
csv_transaction(self.wallet) |
|
|
|
|
|
|
|
def do_import_privkey(self): |
|
|
|
text, ok = QInputDialog.getText(self, _('Import private key'), _('Key') + ':') |
|
|
|
if not self.wallet.imported_keys: |
|
|
|
r = QMessageBox.question(None, _('Warning'), _('Warning: Imported keys are not recoverable from seed.') + ' ' \ |
|
|
|
+ _('If you ever need to restore your wallet from its seed, these keys will be lost.') + '\n\n' \ |
|
|
|
+ _('Are you sure you understand what you are doing?'), 3, 4) |
|
|
|
if r == 4: return |
|
|
|
|
|
|
|
text, ok = QInputDialog.getText(self, _('Import private key'), _('Private Key') + ':') |
|
|
|
if not ok: return |
|
|
|
sec = str(text) |
|
|
|
if self.wallet.use_encryption: |
|
|
@ -1713,9 +1719,7 @@ class ElectrumWindow(QMainWindow): |
|
|
|
|
|
|
|
grid_io.addWidget(QLabel(_('Private key')), 3, 0) |
|
|
|
grid_io.addWidget(EnterButton(_("Import"), self.do_import_privkey), 3, 2) |
|
|
|
grid_io.addWidget(HelpButton('Import private key' + '\n' \ |
|
|
|
+ _('Warning: Imported keys are not recoverable with your seed.') + '\n' \ |
|
|
|
+ _('If you import keys, you will need to do backups of your wallet.')), 3, 3) |
|
|
|
grid_io.addWidget(HelpButton('Import private key'), 3, 3) |
|
|
|
|
|
|
|
grid_io.setRowStretch(4,1) |
|
|
|
vbox.addLayout(ok_cancel_buttons(d)) |
|
|
|