]> git.sesse.net Git - vlc/commitdiff
Qt: reorganize playlist actions, rename "Delete" to "Remove Selected"
authorJakob Leben <jleben@videolan.org>
Thu, 4 Mar 2010 13:33:32 +0000 (14:33 +0100)
committerJakob Leben <jleben@videolan.org>
Thu, 4 Mar 2010 13:35:30 +0000 (14:35 +0100)
include/vlc_intf_strings.h
modules/gui/qt4/components/playlist/playlist_model.cpp

index 9f6367f7e345d90e34c7181ea379c2b6e22c3eef..cd532b5c9e5b4ee7264189b101b2eaab0b391523 100644 (file)
@@ -64,7 +64,7 @@
 /* Playlist popup */
 #define I_POP_PLAY N_("Play")
 #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_SORT N_("Sort")
 #define I_POP_NEWFOLDER I_DIR_OR_FOLDER( N_("Create Directory..."), \
index ed70f4bba2937ec3931ee68040348185a37eb18a..f3d2955b99016b6e812555ebbe59a6814fbad6d5 100644 (file)
@@ -921,16 +921,13 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
     if( i_popup_item > -1 )
     {
         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" ),
                         qtr(I_POP_STREAM), this, SLOT( popupStream() ) );
         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( ":/type/folder-grey" ),
                         qtr( I_POP_EXPLORE ), this, SLOT( popupExplore() ) );
+        menu.addSeparator();
     }
     if( canEdit() )
     {
@@ -953,6 +950,8 @@ bool PLModel::popup( const QModelIndex & index, const QPoint &point, const QMode
     }
     if( i_popup_item > -1 )
     {
+        menu.addAction( QIcon( ":/buttons/playlist/playlist_remove" ),
+                        qtr(I_POP_DEL), this, SLOT( popupDel() ) );
         menu.addSeparator();
         if( !sortingMenu )
         {