Use consistent clearing code for removePlaylistNote
This commit is contained in:
parent
c41aa5819a
commit
48923ec862
@ -1289,7 +1289,8 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
|
|
||||||
def removePlaylistNote(self):
|
def removePlaylistNote(self):
|
||||||
if not self.clearedPlaylistNote:
|
if not self.clearedPlaylistNote:
|
||||||
self.playlist.clear()
|
for index in xrange(self.playlist.count()):
|
||||||
|
self.playlist.takeItem(0)
|
||||||
self.clearedPlaylistNote = True
|
self.clearedPlaylistNote = True
|
||||||
|
|
||||||
def addFolderToPlaylist(self, folderPath):
|
def addFolderToPlaylist(self, folderPath):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user