Commit 47fba51d authored by Jakob Leben's avatar Jakob Leben

Qt: reorganize playlist actions, rename "Delete" to "Remove Selected"

parent bb168adf
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
/* Playlist popup */ /* Playlist popup */
#define I_POP_PLAY N_("Play") #define I_POP_PLAY N_("Play")
#define I_POP_PREPARSE N_("Fetch Information") #define I_POP_PREPARSE N_("Fetch Information")
#define I_POP_DEL N_("Delete") #define I_POP_DEL N_("Remove Selected")
#define I_POP_INFO N_("Information...") #define I_POP_INFO N_("Information...")
#define I_POP_SORT N_("Sort") #define I_POP_SORT N_("Sort")
#define I_POP_NEWFOLDER I_DIR_OR_FOLDER( N_("Create Directory..."), \ #define I_POP_NEWFOLDER I_DIR_OR_FOLDER( N_("Create Directory..."), \
......
...@@ -921,16 +921,13 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode ...@@ -921,16 +921,13 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
if( i_popup_item > -1 ) if( i_popup_item > -1 )
{ {
menu.addAction( QIcon( ":/menu/play" ), qtr(I_POP_PLAY), this, SLOT( popupPlay() ) ); menu.addAction( QIcon( ":/menu/play" ), qtr(I_POP_PLAY), this, SLOT( popupPlay() ) );
menu.addAction( QIcon( ":/buttons/playlist/playlist_remove" ),
qtr(I_POP_DEL), this, SLOT( popupDel() ) );
menu.addSeparator();
menu.addAction( QIcon( ":/menu/stream" ), menu.addAction( QIcon( ":/menu/stream" ),
qtr(I_POP_STREAM), this, SLOT( popupStream() ) ); qtr(I_POP_STREAM), this, SLOT( popupStream() ) );
menu.addAction( qtr(I_POP_SAVE), this, SLOT( popupSave() ) ); menu.addAction( qtr(I_POP_SAVE), this, SLOT( popupSave() ) );
menu.addSeparator();
menu.addAction( QIcon( ":/menu/info" ), qtr(I_POP_INFO), this, SLOT( popupInfo() ) ); menu.addAction( QIcon( ":/menu/info" ), qtr(I_POP_INFO), this, SLOT( popupInfo() ) );
menu.addAction( QIcon( ":/type/folder-grey" ), menu.addAction( QIcon( ":/type/folder-grey" ),
qtr( I_POP_EXPLORE ), this, SLOT( popupExplore() ) ); qtr( I_POP_EXPLORE ), this, SLOT( popupExplore() ) );
menu.addSeparator();
} }
if( canEdit() ) if( canEdit() )
{ {
...@@ -953,6 +950,8 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode ...@@ -953,6 +950,8 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
} }
if( i_popup_item > -1 ) if( i_popup_item > -1 )
{ {
menu.addAction( QIcon( ":/buttons/playlist/playlist_remove" ),
qtr(I_POP_DEL), this, SLOT( popupDel() ) );
menu.addSeparator(); menu.addSeparator();
if( !sortingMenu ) if( !sortingMenu )
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment