ScanQRTextEdit allow_multi=True for sweeping and importing privkeys into existing wallet
This commit is contained in:
@@ -2414,7 +2414,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||
vbox = QVBoxLayout(d)
|
||||
vbox.addWidget(QLabel(_("Enter private keys:")))
|
||||
|
||||
keys_e = ScanQRTextEdit()
|
||||
keys_e = ScanQRTextEdit(allow_multi=True)
|
||||
keys_e.setTabChangesFocus(True)
|
||||
vbox.addWidget(keys_e)
|
||||
|
||||
@@ -2464,7 +2464,8 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||
self.warn_if_watching_only()
|
||||
|
||||
def _do_import(self, title, msg, func):
|
||||
text = text_dialog(self, title, msg + ' :', _('Import'))
|
||||
text = text_dialog(self, title, msg + ' :', _('Import'),
|
||||
allow_multi=True)
|
||||
if not text:
|
||||
return
|
||||
bad = []
|
||||
|
||||
Reference in New Issue
Block a user