clean up device_category_editor

This commit is contained in:
Charles Haley 2011-07-31 19:30:29 +01:00
parent a701da4e67
commit 7a69120f4f
2 changed files with 5 additions and 5 deletions

View File

@ -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?'),
'<p>'+_('Are you certain you want to delete the following items?')+'<br>'+ct):
if not question_dialog(self, _('Are you sure?'),
'<p>'+_('Are you sure you want to delete the following items?')+'<br>'+ct):
return
row = self.available_tags.row(deletes[0])
for item in deletes:

View File

@ -133,7 +133,7 @@
<connection>
<sender>buttonBox</sender>
<signal>accepted()</signal>
<receiver>TagListEditor</receiver>
<receiver>DeviceCategoryEditor</receiver>
<slot>accept()</slot>
<hints>
<hint type="sourcelabel">
@ -149,7 +149,7 @@
<connection>
<sender>buttonBox</sender>
<signal>rejected()</signal>
<receiver>TagListEditor</receiver>
<receiver>DeviceCategoryEditor</receiver>
<slot>reject()</slot>
<hints>
<hint type="sourcelabel">