]> git.sesse.net Git - vlc/commitdiff
Qt: Open: sort MRLs (alphabetically) before adding them to the PL
authorJean-Philippe Andre <jpeg@via.ecp.fr>
Fri, 13 Feb 2009 16:16:47 +0000 (00:16 +0800)
committerJean-Philippe Andre <jpeg@via.ecp.fr>
Fri, 13 Feb 2009 16:23:15 +0000 (00:23 +0800)
By default, the open dialog will sort the MRL alphabetically.
Then why would these MRLs not be sorted so?

modules/gui/qt4/dialogs/open.cpp

index 27ea8684c1dc0bdad78a2a178b364a619078df46..89cad1feed1be033da920b56ac5a9e98eae13f41 100644 (file)
@@ -331,6 +331,9 @@ void OpenDialog::finish( bool b_enqueue = false )
         return;
     }
 
+    /* Sort alphabetically */
+    itemsMRL.sort();
+
     /* Go through the item list */
     for( int i = 0; i < itemsMRL.size(); i++ )
     {