[banshee/stable-2.6] AppleDevice: override BaseDirectory property so as to stop returning null



commit 7c57c7a3c93a1e1c83e5b30611b072fd26bca48a
Author: Andres G. Aragoneses <knocte gmail com>
Date:   Sat Jan 19 14:24:19 2013 +0000

    AppleDevice: override BaseDirectory property so as to stop returning null
    
    It may be useful to have a non-null BaseDirectory property in case other
    parts of the code want to check the mount point path of this Dap source.
    Best example of this scenario is a recently committed bugfix[1].
    
    [1] http://git.gnome.org/browse/banshee/commit/?id=ba835711dd48e704709f9e0aeba491c3bfc19469

 .../Banshee.Dap.AppleDevice/AppleDeviceSource.cs   |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs 
b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
index c43d159..d544528 100644
--- a/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
+++ b/src/Dap/Banshee.Dap.AppleDevice/Banshee.Dap.AppleDevice/AppleDeviceSource.cs
@@ -404,6 +404,10 @@ namespace Banshee.Dap.AppleDevice
             get { return false; }//!database_supported; }
         }
 
+        public override string BaseDirectory {
+            get { return Volume.MountPoint; }
+        }
+
         public override void Import ()
         {
             Banshee.ServiceStack.ServiceManager.Get<LibraryImportManager> ().Enqueue (GPod.ITDB.GetMusicPath 
(Device));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]