When clearing the playlist using the "Clear Playlist" action, strange things happen:
the playlist view is empty, but playback is still active
the next command affecting the playlist (e.g. closing Maestro) causes exceptions:
2015-02-22 17:55:41,976: DEBUG - maestro.application - main application quit
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/michael/code/maestro/maestro/__main__.py", line 2, in <module>
application.run()
File "/home/michael/code/maestro/maestro/application.py", line 302, in run
profiles.manager.save()
File "/home/michael/code/maestro/maestro/profiles.py", line 372, in save
category.save()
File "/home/michael/code/maestro/maestro/profiles.py", line 309, in save
for profile in self._profiles])
File "/home/michael/code/maestro/maestro/profiles.py", line 309, in <listcomp>
for profile in self._profiles])
File "/home/michael/code/maestro/maestro/plugins/phonon/plugin.py", line 242, in save
result['current'] = self.playlist.current.offset()
File "/home/michael/code/maestro/maestro/core/nodes.py", line 191, in offset
offset = self.parent.offset()
File "/home/michael/code/maestro/maestro/core/nodes.py", line 197, in offset
.format(self, self.parent))
ValueError: Node.getOffset: Node <W: Premium Collection Gold> is not contained in its parent RootNode with 0 contents.
Empyting the playlist by manually removing the elements (using del key) is not a problem. I don't really understand this because PlaylistModel.clear() and PlaylistModel.remove() seem to do the same?!
When clearing the playlist using the "Clear Playlist" action, strange things happen:
Empyting the playlist by manually removing the elements (using del key) is not a problem. I don't really understand this because PlaylistModel.clear() and PlaylistModel.remove() seem to do the same?!