mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
clean up device_category_editor
This commit is contained in:
parent
a701da4e67
commit
7a69120f4f
@ -106,11 +106,11 @@ class DeviceCategoryEditor(QDialog, Ui_DeviceCategoryEditor):
|
|||||||
deletes = self.available_tags.selectedItems()
|
deletes = self.available_tags.selectedItems()
|
||||||
if not deletes:
|
if not deletes:
|
||||||
error_dialog(self, _('No items selected'),
|
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
|
return
|
||||||
ct = ', '.join([unicode(item.text()) for item in deletes])
|
ct = ', '.join([unicode(item.text()) for item in deletes])
|
||||||
if not question_dialog(self, _('Are your sure?'),
|
if not question_dialog(self, _('Are you sure?'),
|
||||||
'<p>'+_('Are you certain you want to delete the following items?')+'<br>'+ct):
|
'<p>'+_('Are you sure you want to delete the following items?')+'<br>'+ct):
|
||||||
return
|
return
|
||||||
row = self.available_tags.row(deletes[0])
|
row = self.available_tags.row(deletes[0])
|
||||||
for item in deletes:
|
for item in deletes:
|
||||||
|
@ -133,7 +133,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
<signal>accepted()</signal>
|
<signal>accepted()</signal>
|
||||||
<receiver>TagListEditor</receiver>
|
<receiver>DeviceCategoryEditor</receiver>
|
||||||
<slot>accept()</slot>
|
<slot>accept()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
@ -149,7 +149,7 @@
|
|||||||
<connection>
|
<connection>
|
||||||
<sender>buttonBox</sender>
|
<sender>buttonBox</sender>
|
||||||
<signal>rejected()</signal>
|
<signal>rejected()</signal>
|
||||||
<receiver>TagListEditor</receiver>
|
<receiver>DeviceCategoryEditor</receiver>
|
||||||
<slot>reject()</slot>
|
<slot>reject()</slot>
|
||||||
<hints>
|
<hints>
|
||||||
<hint type="sourcelabel">
|
<hint type="sourcelabel">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user