forked from openlp/openlp
Switched around the order of some dialogs when deleting items in the Song Maintenance dialog.
This commit is contained in:
parent
2b237bb488
commit
708a62ad47
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user