strip spaces around private key
authorthomasv <thomasv@gitorious>
Fri, 11 Jan 2013 17:01:40 +0000 (18:01 +0100)
committerthomasv <thomasv@gitorious>
Fri, 11 Jan 2013 17:01:40 +0000 (18:01 +0100)
lib/gui_qt.py

index 25fab48..cb2ed59 100644 (file)
@@ -1631,7 +1631,7 @@ class ElectrumWindow(QMainWindow):
 
         text, ok = QInputDialog.getText(self, _('Import private key'), _('Private Key') + ':')
         if not ok: return
-        sec = str(text)
+        sec = str(text).strip()
         if self.wallet.use_encryption:
             password = self.password_dialog()
             if not password: