more robust get_seed_text
authorThomasV <thomasv@gitorious>
Tue, 22 Apr 2014 13:12:36 +0000 (15:12 +0200)
committerThomasV <thomasv@gitorious>
Tue, 22 Apr 2014 13:12:36 +0000 (15:12 +0200)
gui/qt/installwizard.py

index 9912dd1..1f857ef 100644 (file)
@@ -85,7 +85,9 @@ class InstallWizard(QDialog):
 
 
     def get_seed_text(self, seed_e):
-        return unicode(seed_e.toPlainText())
+        text = unicode(seed_e.toPlainText()).lower().strip()
+        text = ' '.join(text.split())
+        return text
 
 
     def is_seed(self, seed_e):