Fix bug stopping right-click menu

This commit is contained in:
Keith Edmunds 2022-06-10 15:28:12 +01:00
parent 5c02f82d21
commit 8558de82b4

View File

@ -225,7 +225,7 @@ class PlaylistTab(QTableWidget):
act_info = self.menu.addAction('Info')
act_info.triggered.connect(lambda: self._info_row(row))
self.menu.addSeparator()
if row not in self.get_notes_rows():
if row not in self._get_notes_rows():
act_mplayer = self.menu.addAction(
"Play track with mplayer")
act_mplayer.triggered.connect(
@ -1432,7 +1432,7 @@ class PlaylistTab(QTableWidget):
DEBUG(f"_mplayer({row})")
if row in self.get_notes_rows():
if row in self._get_notes_rows():
return None
with Session() as session: