[vlc-devel] commit: Qt: Open: sort MRLs (alphabetically) before adding them to the PL ( Jean-Philippe Andre )
git version control
git at videolan.org
Fri Feb 13 17:23:04 CET 2009
vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Sat Feb 14 00:16:47 2009 +0800| [0de3c72312e7e4bcb20a9cc6bf3c9e98e5f0b4c9] | committer: Jean-Philippe Andre
Qt: Open: sort MRLs (alphabetically) before adding them to the PL
By default, the open dialog will sort the MRL alphabetically.
Then why would these MRLs not be sorted so?
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0de3c72312e7e4bcb20a9cc6bf3c9e98e5f0b4c9
---
modules/gui/qt4/dialogs/open.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp
index 27ea868..89cad1f 100644
--- a/modules/gui/qt4/dialogs/open.cpp
+++ b/modules/gui/qt4/dialogs/open.cpp
@@ -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++ )
{
More information about the vlc-devel
mailing list