application/src/PodcastShowsView.cpp
changeset 6 e211a78d3037
parent 5 ba42cd6670b8
child 8 aab3aa4acdd6
--- a/application/src/PodcastShowsView.cpp	Thu Feb 25 16:27:23 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Thu Feb 25 16:47:16 2010 +0000
@@ -297,9 +297,10 @@
 			ShowErrorMessage(message);
 			}
 			break;
-		default: // Do nothing
+		default:
 			break;
 		}
+	UpdateListboxItemsL();
 	}
 
 
@@ -465,18 +466,15 @@
 
 	if(aShowInfo.LastError() != KErrNone)
 		{
-		TBuf<KSizeBufLen> errorBuffer;
-		GetShowErrorText(errorBuffer, aShowInfo.LastError());
-		iListboxFormatbuffer.Format(KShowErrorFormat(), iconIndex, &aShowInfo.Title(), &errorBuffer);
+		GetShowErrorText(infoSize, aShowInfo.LastError());
 		}
-	else	
+	
+	if (infoSize.Length() > 0)
 		{
-		if (infoSize.Length() > 0) {
-			infoSize.Insert(0,_L(", "));
+		infoSize.Insert(0,_L(", "));
 		}
 		
-		iListboxFormatbuffer.Format(KShowFormat(), iconIndex, &aShowInfo.Title(), &showDate, &infoSize);
-		}
+	iListboxFormatbuffer.Format(KShowFormat(), iconIndex, &aShowInfo.Title(), &showDate, &infoSize);
 	}
 
 void CPodcastShowsView::GetShowErrorText(TDes &aErrorMessage, TInt aErrorCode)
@@ -548,7 +546,8 @@
 				{
 				for (TInt loop = 0; loop< len; loop++)
 					{					
-					UpdateShowItemDataL(fItems[loop], loop);	
+					UpdateShowItemDataL(fItems[loop], loop);
+					iListContainer->Listbox()->DrawItem(loop);
 					}
 				}
 			else