Don't show feed/show date when an error occured
authorteknolog
Sun, 04 Apr 2010 18:14:15 +0100
changeset 112 0bd6b9a3f027
parent 111 12c59f14a031
child 113 50345a6ad0c3
Don't show feed/show date when an error occured
application/src/PodcastFeedView.cpp
application/src/PodcastShowsView.cpp
engine/src/ShowEngine.cpp
--- a/application/src/PodcastFeedView.cpp	Sun Apr 04 18:06:31 2010 +0100
+++ b/application/src/PodcastFeedView.cpp	Sun Apr 04 18:14:15 2010 +0100
@@ -362,6 +362,7 @@
 		if(aFeedInfo.LastError() != KErrNone)
 			{
 			GetFeedErrorText(unplayedShows, aFeedInfo.LastError());
+			updatedDate.Zero();
 			}
 		}
 	CArrayPtr<CGulIcon>* icons = iListContainer->Listbox()->ItemDrawer()->FormattedCellData()->IconArray();
@@ -385,7 +386,7 @@
 		iconIndex++;
 		}	
 
-	if (unplayedShows.Length() > 0) {
+	if (unplayedShows.Length() > 0 && updatedDate.Length() > 0) {
 		unplayedShows.Insert(0,_L(", "));
 	}
 	
--- a/application/src/PodcastShowsView.cpp	Sun Apr 04 18:06:31 2010 +0100
+++ b/application/src/PodcastShowsView.cpp	Sun Apr 04 18:14:15 2010 +0100
@@ -432,9 +432,10 @@
 	if(aShowInfo.LastError() != KErrNone)
 		{
 		GetShowErrorText(infoSize, aShowInfo.LastError());
+		showDate.Zero();
 		}
 	
-	if (infoSize.Length() > 0)
+	if (infoSize.Length() > 0 && showDate.Length() > 0)
 		{
 		infoSize.Insert(0,_L(", "));
 		}
--- a/engine/src/ShowEngine.cpp	Sun Apr 04 18:06:31 2010 +0100
+++ b/engine/src/ShowEngine.cpp	Sun Apr 04 18:14:15 2010 +0100
@@ -1345,7 +1345,5 @@
 
 void CShowEngine::FileError(TUint /*aError*/)
 	{
-	//TODO: Error dialog
-	//StopDownloads();
 	iDownloadErrors = KMaxDownloadErrors;
 	}