Change playlist menu names
This commit is contained in:
parent
90b322f282
commit
ca995c8794
@ -7,8 +7,7 @@ import sys
|
||||
from datetime import datetime, timedelta
|
||||
from log import DEBUG, EXCEPTION
|
||||
|
||||
from PyQt5 import Qt
|
||||
from PyQt5.QtCore import QTimer
|
||||
from PyQt5.QtCore import Qt, QTimer
|
||||
from PyQt5.QtWidgets import (
|
||||
QApplication,
|
||||
QDialog,
|
||||
@ -120,7 +119,7 @@ class Window(QMainWindow, Ui_MainWindow):
|
||||
self.actionNewPlaylist.triggered.connect(self.create_playlist)
|
||||
self.actionPlay_next.triggered.connect(self.play_next)
|
||||
self.actionSearch_database.triggered.connect(self.search_database)
|
||||
self.actionSelectPlaylist.triggered.connect(self.select_playlist)
|
||||
self.actionOpenPlaylist.triggered.connect(self.select_playlist)
|
||||
self.actionSkip_next.triggered.connect(self.play_next)
|
||||
self.actionSkipToEnd.triggered.connect(self.test_skip_to_end)
|
||||
self.actionSkipToFade.triggered.connect(self.test_skip_to_fade)
|
||||
@ -494,7 +493,7 @@ class DbDialog(QDialog):
|
||||
|
||||
def add_track(self, track_id):
|
||||
track = Tracks.track_from_id(track_id)
|
||||
self.parent().add_to_playlist(track)
|
||||
self.parent().current_playlist().add_to_playlist(track)
|
||||
# Select search text to make it easier for next search
|
||||
self.select_searchtext()
|
||||
|
||||
|
||||
@ -406,6 +406,8 @@ class Playlist(QTableWidget):
|
||||
def _get_row_id(self, row):
|
||||
"Return item id as integer from passed row"
|
||||
|
||||
if row is None:
|
||||
return
|
||||
if self.item(row, self.COL_INDEX):
|
||||
try:
|
||||
return int(self.item(row, self.COL_INDEX).text())
|
||||
|
||||
@ -751,12 +751,15 @@ border: 1px solid rgb(85, 87, 83);</string>
|
||||
<property name="title">
|
||||
<string>Pla&ylist</string>
|
||||
</property>
|
||||
<addaction name="actionNewPlaylist"/>
|
||||
<addaction name="actionOpenPlaylist"/>
|
||||
<addaction name="actionClosePlaylist"/>
|
||||
<addaction name="actionRenamePlaylist"/>
|
||||
<addaction name="actionDeletePlaylist"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSearch_database"/>
|
||||
<addaction name="actionAdd_file"/>
|
||||
<addaction name="action_Clear_selection"/>
|
||||
<addaction name="separator"/>
|
||||
<addaction name="actionSelectPlaylist"/>
|
||||
<addaction name="actionNewPlaylist"/>
|
||||
</widget>
|
||||
<widget class="QMenu" name="menu_Tracks">
|
||||
<property name="title">
|
||||
@ -886,14 +889,14 @@ border: 1px solid rgb(85, 87, 83);</string>
|
||||
<string>&Test</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSelectPlaylist">
|
||||
<action name="actionOpenPlaylist">
|
||||
<property name="text">
|
||||
<string>Select &playlist</string>
|
||||
<string>O&pen...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionNewPlaylist">
|
||||
<property name="text">
|
||||
<string>&New playlist</string>
|
||||
<string>&New...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionTestFunction">
|
||||
@ -911,6 +914,30 @@ border: 1px solid rgb(85, 87, 83);</string>
|
||||
<string>Skip to &end of track</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionClosePlaylist">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Close</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRenamePlaylist">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>&Rename...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDeletePlaylist">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Dele&te...</string>
|
||||
</property>
|
||||
</action>
|
||||
</widget>
|
||||
<resources>
|
||||
<include location="icons.qrc"/>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user