1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-15 10:48:33 +01:00

fixed broken RemoveDuplicates script

maybe fix the issue #1444
This commit is contained in:
Paweł Bara 2011-02-14 17:44:15 +00:00
parent d109b70898
commit 85b876d112
2 changed files with 2 additions and 1 deletions

View File

@ -59,7 +59,7 @@ class RemoveDuplicatesListener(SongInsertVetoListener):
def url_for_song(self, song):
if not song.filename() == "":
return song.filename() + ":" + str(song.beginning())
return song.filename() + ":" + str(song.beginning_nanosec())
else:
return ""

View File

@ -209,6 +209,7 @@ void PlaylistTabBar::timerEvent(QTimerEvent* e) {
void PlaylistTabBar::dropEvent(QDropEvent* e) {
if (drag_hover_tab_ == -1) {
manager_->New(tr("Playlist"));
setCurrentIndex(count() - 1);
} else {
setCurrentIndex(drag_hover_tab_);
}