From 795f413ecbe09a3b20edceb9a4627e403a0e2003 Mon Sep 17 00:00:00 2001 From: Apprentice Harper Date: Thu, 23 Jan 2020 12:14:19 +0000 Subject: [PATCH] Allow Kindle serial numbers to have spaces, allowing copy/paste from Amazon web site (thanks to jakemarsden) --- dedrm_src/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dedrm_src/config.py b/dedrm_src/config.py index 3a56e44..98ce6e0 100644 --- a/dedrm_src/config.py +++ b/dedrm_src/config.py @@ -879,7 +879,7 @@ class AddSerialDialog(QDialog): @property def key_value(self): - return unicode(self.key_ledit.text()).strip() + return unicode(self.key_ledit.text()).replace(' ', '') def accept(self): if len(self.key_name) == 0 or self.key_name.isspace():