forked from openlp/openlp
Fix the deletion of songs
This was left out when migrating to Qt 5
This commit is contained in:
parent
607371a6d7
commit
584a0fda0d
|
@ -363,8 +363,8 @@ class SongMediaItem(MediaManagerItem):
|
||||||
items = self.list_view.selectedIndexes()
|
items = self.list_view.selectedIndexes()
|
||||||
if QtWidgets.QMessageBox.question(
|
if QtWidgets.QMessageBox.question(
|
||||||
self, UiStrings().ConfirmDelete,
|
self, UiStrings().ConfirmDelete,
|
||||||
translate('SongsPlugin.MediaItem', 'Are you sure you want to delete the %n selected song(s)?', '',
|
translate('SongsPlugin.MediaItem',
|
||||||
QtCore.QCoreApplication.CodecForTr, len(items)),
|
'Are you sure you want to delete the "%d" selected song(s)?') % len(items),
|
||||||
QtWidgets.QMessageBox.StandardButtons(QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No),
|
QtWidgets.QMessageBox.StandardButtons(QtWidgets.QMessageBox.Yes | QtWidgets.QMessageBox.No),
|
||||||
QtWidgets.QMessageBox.Yes) == QtWidgets.QMessageBox.No:
|
QtWidgets.QMessageBox.Yes) == QtWidgets.QMessageBox.No:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue