[Kst] branches/work/kst/portto4/kst/src/datasources/dirfile

Mike Fenton mike at staikos.net
Thu Sep 11 19:53:08 CEST 2008


SVN commit 859986 by fenton:

Fix DirFile not picking up when the directory is provided without a trailing /


 M  +3 -0      dirfile.cpp  


--- branches/work/kst/portto4/kst/src/datasources/dirfile/dirfile.cpp #859985:859986
@@ -326,6 +326,9 @@
   QString properDirPath = info.path();
   if (info.fileName() == "format") {
     //do nothing... allows for format file to be selected.
+  } else if (info.isDir()) {
+    //do nothing... a directory was selected.
+    properDirPath = filepath;
   } else {
     QFile file(filepath);
     if (file.open(QFile::ReadOnly)) {


More information about the Kst mailing list