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() 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:

View File

@ -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">