Switched around the order of some dialogs when deleting items in the Song Maintenance dialog.

This commit is contained in:
Raoul Snyman 2009-08-02 21:10:54 +02:00
parent 2b237bb488
commit 708a62ad47

View File

@ -79,10 +79,10 @@ class SongMaintenanceForm(QtGui.QDialog, Ui_SongMaintenanceDialog):
item_id = self._getCurrentItemId(list_widget)
if item_id != -1:
item = get_func(item_id)
if item is not None and len(item.songs) == 0:
if QtGui.QMessageBox.warning(self, dlg_title, del_text,
QtGui.QMessageBox.StandardButtons(QtGui.QMessageBox.No | QtGui.QMessageBox.Yes)
) == QtGui.QMessageBox.Yes:
if item is not None and len(item.songs) == 0:
del_func(item.id)
reset_func()
else: