[banshee] AppleDevice: override BaseDirectory property so as to stop returning null



commit 1c49d3baba06ba5b113eba6c41d6c28c35b2b545
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 612c191..a16f0e9 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]