Previously, if you upload a song that you already had on the device,
Banshee would die because we later try to to look up the props, and by
that time dupe detection has killed the property hash for the song.
riocp already does this properly.

# HG changeset patch
# User [EMAIL PROTECTED]
# Date 1168732143 18000
# Node ID 0ce32234326ab13ab03bb6fbcd050f8d58bc372f
# Parent  bee08234de15faa60b34512ccacef4fa03718ff5
Check for errors on upload

diff -r bee08234de15 -r 0ce32234326a karma-sharp/Device.cs
--- a/karma-sharp/Device.cs     Sat Jan 13 18:47:44 2007 -0500
+++ b/karma-sharp/Device.cs     Sat Jan 13 18:49:03 2007 -0500
@@ -119,7 +119,7 @@ namespace Karma {
             foreach (string filename in filesToAdd) {
                 int fid = lk_rio_write(rio_id, filename);
 
-                if (ProgressChanged != null) {
+                if (ProgressChanged != null && fid > 0) {
                     ProgressChanged(new Song(fid));
                 }
             }
-- 
Bob Copeland %% www.bobcopeland.com 


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-karma-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-karma-devel

Reply via email to