Strip whitespace from Kindle serials (#158)
This commit is contained in:
parent
06648eeb1c
commit
06df18bea3
|
@ -82,3 +82,4 @@ List of changes since the fork of Apprentice Harper's repository:
|
|||
- Fix a bug that would sometimes cause corrupted keys to be added when adding them through the config dialog (fixes #145, #134, #119, #116, #115, #109).
|
||||
- Update the README (fixes #136) to indicate that Apprentice Harper's version is no longer being updated.
|
||||
- Fix a bug where PDFs with empty arrays (`<>`) in a PDF object failed to decrypt, fixes #183.
|
||||
- Automatically strip whitespace from entered Amazon Kindle serial numbers, should fix #158.
|
||||
|
|
|
@ -1326,7 +1326,7 @@ class AddSerialDialog(QDialog):
|
|||
|
||||
@property
|
||||
def key_value(self):
|
||||
return str(self.key_ledit.text()).replace(' ', '')
|
||||
return str(self.key_ledit.text()).replace(' ', '').replace('\r', '').replace('\n', '').replace('\t', '')
|
||||
|
||||
def accept(self):
|
||||
if len(self.key_name) == 0 or self.key_name.isspace():
|
||||
|
|
Loading…
Reference in New Issue