Revision 7e26c075 trunk/Pithos.ShellExtensions/Overlays/IconOverlayBase.cs

b/trunk/Pithos.ShellExtensions/Overlays/IconOverlayBase.cs
4 4
using System.IO;
5 5

  
6 6
using System.ComponentModel.Composition;
7
using System.Linq;
7 8
using Pithos.Interfaces;
8 9

  
9 10
namespace Pithos.ShellExtensions.Overlays
......
11 12

  
12 13
    public class IconOverlayBase : IShellIconOverlayIdentifier
13 14
    {
15
        private static readonly log4net.ILog Log = log4net.LogManager.GetLogger("Pithos.IconOverlay");
16

  
14 17
        protected static string PithosPrefix = "0Pithos";
15 18

  
16 19
        public string OverlayName { get; private set; }
......
53 56

  
54 57
            Debug.WriteLine(String.Format("ICON Status check for {0} - {1}", path, GetType().Name), LogCategories.ShellOverlays);
55 58
            
56
            if (!path.StartsWith(Settings.PithosPath,true,null))
59
            if (!Settings.Accounts.Any(account=>path.StartsWith(account.RootPath,StringComparison.InvariantCultureIgnoreCase)))
57 60
                return WinError.S_FALSE;
58 61

  
59 62
            var status=StatusChecker.GetFileOverlayStatus(path);

Also available in: Unified diff