Author: richard
Date: Tue Feb 24 04:28:18 2009
New Revision: 4426

URL: http://svn.slimdevices.com/jive?rev=4426&view=rev
Log:
Bug: N/A
Descripiton:
Fix screenshots, they were no longer being saved to the SD card.


Modified:
    
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua

Modified: 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua
URL: 
http://svn.slimdevices.com/jive/7.4/trunk/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua?rev=4426&r1=4425&r2=4426&view=diff
==============================================================================
--- 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua
 (original)
+++ 
7.4/trunk/squeezeplay/src/squeezeplay/share/applets/Screenshot/ScreenshotApplet.lua
 Tue Feb 24 04:28:18 2009
@@ -40,14 +40,16 @@
 local function _takeScreenshotAction(self)
        Framework:playSound("CLICK")
 
-       -- write to /media/*/log/squeezeplayXXXX.bmp or userpath
+       -- write to /media/*/squeezeplayXXXX.bmp or userpath
        local path = System.getUserDir()
        if lfs.attributes("/media", "mode") ~= nil then
                for dir in lfs.dir("/media") do
-                       local tmp = "/media/" .. dir 
-                       if lfs.attributes(tmp, "mode") == "directory" then
-                               path = tmp
-                               break
+                       if not string.match(dir, "^%.") then
+                               local tmp = "/media/" .. dir 
+                               if lfs.attributes(tmp, "mode") == "directory" 
then
+                                       path = tmp
+                                       break
+                               end
                        end
                end
        end

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to