From 7a69120f4ffa55aeafa43aa145f6bc32a45746bd Mon Sep 17 00:00:00 2001 From: Charles Haley <> Date: Sun, 31 Jul 2011 19:30:29 +0100 Subject: [PATCH] clean up device_category_editor --- src/calibre/gui2/dialogs/device_category_editor.py | 6 +++--- src/calibre/gui2/dialogs/device_category_editor.ui | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/calibre/gui2/dialogs/device_category_editor.py b/src/calibre/gui2/dialogs/device_category_editor.py index 5e3267f9c4..3b046b8ef1 100644 --- a/src/calibre/gui2/dialogs/device_category_editor.py +++ b/src/calibre/gui2/dialogs/device_category_editor.py @@ -106,11 +106,11 @@ class DeviceCategoryEditor(QDialog, Ui_DeviceCategoryEditor): deletes = self.available_tags.selectedItems() if not deletes: error_dialog(self, _('No items selected'), - _('You must select at least one items from the list.')).exec_() + _('You must select at least one item from the list.')).exec_() return ct = ', '.join([unicode(item.text()) for item in deletes]) - if not question_dialog(self, _('Are your sure?'), - '

'+_('Are you certain you want to delete the following items?')+'
'+ct): + if not question_dialog(self, _('Are you sure?'), + '

'+_('Are you sure you want to delete the following items?')+'
'+ct): return row = self.available_tags.row(deletes[0]) for item in deletes: diff --git a/src/calibre/gui2/dialogs/device_category_editor.ui b/src/calibre/gui2/dialogs/device_category_editor.ui index 501cc4cf5a..379645bcc0 100644 --- a/src/calibre/gui2/dialogs/device_category_editor.ui +++ b/src/calibre/gui2/dialogs/device_category_editor.ui @@ -133,7 +133,7 @@ buttonBox accepted() - TagListEditor + DeviceCategoryEditor accept() @@ -149,7 +149,7 @@ buttonBox rejected() - TagListEditor + DeviceCategoryEditor reject()