Add playlist duplicate check to file drop

This commit is contained in:
Et0h 2016-01-17 12:44:09 +00:00
parent d87511f60e
commit cfcf9252cc

View File

@ -1430,10 +1430,11 @@ class MainWindow(QtGui.QMainWindow):
if os.path.isfile(filePath):
self.removePlaylistNote()
filename = os.path.basename(filePath)
if self.playlist == -1:
self.playlist.addItem(filename)
else:
self.playlist.insertItem(index, filename)
if self.noPlaylistDuplicates(filename):
if self.playlist == -1:
self.playlist.addItem(filename)
else:
self.playlist.insertItem(index, filename)
elif isURL(filePath):
self.removePlaylistNote()
if self.noPlaylistDuplicates(filePath):