Fix check_item_selection

This commit is contained in:
Jon Tibble 2010-06-24 20:04:18 +01:00
parent 4ac7ce16c0
commit b402cc5639
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@ def check_item_selected(list_widget, message):
The message to give the user if no item is selected
"""
if not list_widget.selectedIndexes():
QtGui.QMessageBox.information(self,
QtGui.QMessageBox.information(list_widget.parent(),
translate('MediaManagerItem', 'No Items Selected'), message)
return False
return True