Fix so only actually added feeds are counted during import
authorteknolog
Sat, 27 Feb 2010 16:41:36 +0000
changeset 20 c92d8384952c
parent 19 9219912415dc
child 21 420a1b4930da
Fix so only actually added feeds are counted during import
application/sis/podcatcher_udeb.sis
application/sis/podcatcher_udeb_signed.sis
application/sis/podcatcher_urel.sis
application/sis/podcatcher_urel_signed.sis
engine/src/OpmlParser.cpp
Binary file application/sis/podcatcher_udeb.sis has changed
Binary file application/sis/podcatcher_udeb_signed.sis has changed
Binary file application/sis/podcatcher_urel.sis has changed
Binary file application/sis/podcatcher_urel_signed.sis has changed
--- a/engine/src/OpmlParser.cpp	Sat Feb 27 15:59:19 2010 +0000
+++ b/engine/src/OpmlParser.cpp	Sat Feb 27 16:41:36 2010 +0000
@@ -152,9 +152,11 @@
 				iFeedEngine.AddSearchResultL(newFeed);
 				CleanupStack::Pop(newFeed);
 			} else {
-				iFeedEngine.AddFeedL(*newFeed);
+				if(iFeedEngine.AddFeedL(*newFeed))
+					{
+					iNumFeedsAdded++;
+					}
 				CleanupStack::PopAndDestroy(newFeed);
-				iNumFeedsAdded++;
 			}
 		}
 		break;