[mythtv] [PATCH] Mythvideo,
be sure to have always an order list of video
Leandro Dardini
ldardini at tiscali.it
Sat Feb 7 12:31:49 EST 2004
Sometimes, Video List doesn't return a correctly ordered list of video, with
Dirs on the top and so on...
Thank you
Leandro
Index: main.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythvideo/mythvideo/main.cpp,v
retrieving revision 1.26
diff -b -u -2 -r1.26 main.cpp
--- main.cpp 26 Dec 2003 07:19:46 -0000 1.26
+++ main.cpp 7 Feb 2004 17:30:39 -0000
@@ -389,4 +389,6 @@
QDir d(directory);
+ d.setSorting(QDir::DirsFirst | QDir::Name | QDir::IgnoreCase );
+
if (!d.exists())
return;
Index: videotree.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythvideo/mythvideo/videotree.cpp,v
retrieving revision 1.25
diff -b -u -2 -r1.25 videotree.cpp
--- videotree.cpp 20 Jan 2004 08:41:46 -0000 1.25
+++ videotree.cpp 7 Feb 2004 17:30:44 -0000
@@ -214,4 +214,6 @@
QDir d(directory);
+ d.setSorting(QDir::DirsFirst | QDir::Name | QDir::IgnoreCase );
+
if (!d.exists())
return;
More information about the mythtv-dev
mailing list