fixed Gtk-CRITICAL

This commit is contained in:
Martin Wagner 2020-03-03 17:57:23 +01:00
parent 36df7cf7dd
commit 3be9589b75

View File

@ -845,7 +845,7 @@ class TrackView(Gtk.Box):
song=self.client.status()["song"]
path = Gtk.TreePath(int(song))
self.selection.select_path(path)
if self.last_song_iter != None:
if self.last_song_iter != None and self.store.iter_is_valid(self.last_song_iter):
self.store.set_value(self.last_song_iter, 6, Pango.Weight.BOOK)
treeiter=self.store.get_iter(path)
self.store.set_value(treeiter, 6, Pango.Weight.BOLD)