Add playlist duplicate check to file drop
This commit is contained in:
parent
d87511f60e
commit
cfcf9252cc
@ -1430,10 +1430,11 @@ class MainWindow(QtGui.QMainWindow):
|
|||||||
if os.path.isfile(filePath):
|
if os.path.isfile(filePath):
|
||||||
self.removePlaylistNote()
|
self.removePlaylistNote()
|
||||||
filename = os.path.basename(filePath)
|
filename = os.path.basename(filePath)
|
||||||
if self.playlist == -1:
|
if self.noPlaylistDuplicates(filename):
|
||||||
self.playlist.addItem(filename)
|
if self.playlist == -1:
|
||||||
else:
|
self.playlist.addItem(filename)
|
||||||
self.playlist.insertItem(index, filename)
|
else:
|
||||||
|
self.playlist.insertItem(index, filename)
|
||||||
elif isURL(filePath):
|
elif isURL(filePath):
|
||||||
self.removePlaylistNote()
|
self.removePlaylistNote()
|
||||||
if self.noPlaylistDuplicates(filePath):
|
if self.noPlaylistDuplicates(filePath):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user