Add playlist duplicate check to file drop
This commit is contained in:
parent
d87511f60e
commit
cfcf9252cc
@ -1430,6 +1430,7 @@ 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.noPlaylistDuplicates(filename):
|
||||||
if self.playlist == -1:
|
if self.playlist == -1:
|
||||||
self.playlist.addItem(filename)
|
self.playlist.addItem(filename)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user