Implemented deletion of playlists.
This commit is contained in:
parent
5ecc70e637
commit
96a9985099
3 changed files with 34 additions and 9 deletions
|
@ -35,10 +35,7 @@ class TabTitle(QLineEdit):
|
|||
def on_edit(self):
|
||||
self.clearFocus()
|
||||
|
||||
self.playlist_view.playlist.delete()
|
||||
self.playlist_view.playlist.rename(self.text())
|
||||
|
||||
name = self.app.utils.unique_name(self.text(), ignore=self.playlist_view.playlist.title)
|
||||
self.setText(name)
|
||||
|
||||
self.playlist_view.playlist.title = name
|
||||
self.setText(self.playlist_view.playlist.title)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue