banshee r4613 - in trunk/banshee: . src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod



Author: gburt
Date: Thu Sep 25 15:39:34 2008
New Revision: 4613
URL: http://svn.gnome.org/viewvc/banshee?rev=4613&view=rev

Log:
2008-09-25  Gabriel Burt  <gabriel burt gmail com>

	* src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs: Don't sync on
	eject if the device IsReadOnly, and consider the device to be readonly if
	the database isn't supported.



Modified:
   trunk/banshee/ChangeLog
   trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs

Modified: trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs
==============================================================================
--- trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs	(original)
+++ trunk/banshee/src/Dap/Banshee.Dap.Ipod/Banshee.Dap.Ipod/IpodSource.cs	Thu Sep 25 15:39:34 2008
@@ -405,9 +405,9 @@
         private Thread sync_thread;
         private AutoResetEvent sync_thread_wait;
         private bool sync_thread_dispose = false;
-        
+
         public override bool IsReadOnly {
-            get { return ipod_device.IsReadOnly; }
+            get { return ipod_device.IsReadOnly || !database_supported; }
         }
         
         public override void Import ()
@@ -452,7 +452,7 @@
 
         public override void SyncPlaylists ()
         {
-            if (Monitor.TryEnter (sync_mutex)) {
+            if (!IsReadOnly && Monitor.TryEnter (sync_mutex)) {
                 PerformSync ();
                 Monitor.Exit (sync_mutex);
             }



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