From 0de3c72312e7e4bcb20a9cc6bf3c9e98e5f0b4c9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Andre Date: Sat, 14 Feb 2009 00:16:47 +0800 Subject: [PATCH] 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? --- modules/gui/qt4/dialogs/open.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/gui/qt4/dialogs/open.cpp b/modules/gui/qt4/dialogs/open.cpp index 27ea8684c1..89cad1feed 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++ ) { -- 2.39.2