forked from openlp/openlp
Minor cosmetic fix.
This commit is contained in:
parent
e16a3c6dea
commit
9597c9f129
@ -273,6 +273,8 @@ class DuplicateSongRemovalForm(OpenLPWizard):
|
|||||||
``songReviewWidget``
|
``songReviewWidget``
|
||||||
The SongReviewWidget whose song we should delete.
|
The SongReviewWidget whose song we should delete.
|
||||||
"""
|
"""
|
||||||
|
#remove song from duplicate song list
|
||||||
|
self.duplicateSongList[-1].remove(songReviewWidget.song)
|
||||||
#remove song
|
#remove song
|
||||||
item_id = songReviewWidget.song.id
|
item_id = songReviewWidget.song.id
|
||||||
media_files = self.plugin.manager.get_all_objects(MediaFile,
|
media_files = self.plugin.manager.get_all_objects(MediaFile,
|
||||||
@ -294,10 +296,10 @@ class DuplicateSongRemovalForm(OpenLPWizard):
|
|||||||
# remove GUI elements
|
# remove GUI elements
|
||||||
self.songsHorizontalLayout.removeWidget(songReviewWidget)
|
self.songsHorizontalLayout.removeWidget(songReviewWidget)
|
||||||
songReviewWidget.setParent(None)
|
songReviewWidget.setParent(None)
|
||||||
# check if we only have one SongReviewWidget left
|
# check if we only have one duplicate left
|
||||||
# 4 stretches + 1 SongReviewWidget = 5
|
# 4 stretches + 1 SongReviewWidget = 5
|
||||||
# the SongReviewWidget is then at position 2
|
# the SongReviewWidget is then at position 2
|
||||||
if self.songsHorizontalLayout.count() == 5:
|
if len(self.duplicateSongList[-1]) == 1:
|
||||||
self.songsHorizontalLayout.itemAt(2).widget().songRemoveButton.setEnabled(False)
|
self.songsHorizontalLayout.itemAt(2).widget().songRemoveButton.setEnabled(False)
|
||||||
|
|
||||||
def proceedToNextReview(self):
|
def proceedToNextReview(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user