Fix for bug 2819 - Crash when updating and connection set to "Always ask"
authorteknolog
Mon, 05 Jul 2010 12:25:54 +0100
changeset 155 4ec84fbc7b27
parent 153 1d3315159ef5
child 158 ffa983aa9d7f
Fix for bug 2819 - Crash when updating and connection set to "Always ask"
application/src/PodcastAppui.cpp
application/src/PodcastShowsView.cpp
--- a/application/src/PodcastAppui.cpp	Fri Jul 02 16:04:15 2010 +0100
+++ b/application/src/PodcastAppui.cpp	Mon Jul 05 12:25:54 2010 +0100
@@ -329,21 +329,22 @@
 
 void CPodcastAppUi::ConnectionSelectionStart()
 	{
-	DP("CPodcastAppUi::ConnectionSelectionStart()");
+	DP("CPodcastAppUi::ConnectionSelectionStart() BEGIN");
 	iFeedView->UpdateToolbar(EFalse);
 	iShowsView->UpdateToolbar(EFalse);
 	iQueueView->UpdateToolbar(EFalse);
 	iSearchView->UpdateToolbar(EFalse);
+	DP("CPodcastAppUi::ConnectionSelectionStart() END");
 	}
 
 void CPodcastAppUi::ConnectionSelectionEnd()
 	{
-	DP("CPodcastAppUi::ConnectionSelectionEnd()");
-	iFeedView->UpdateToolbar(ETrue);
+	DP("CPodcastAppUi::ConnectionSelectionEnd() BEGIN");
 	iFeedView->UpdateToolbar(ETrue);
 	iShowsView->UpdateToolbar(ETrue);
 	iQueueView->UpdateToolbar(ETrue);
 	iSearchView->UpdateToolbar(ETrue);
+	DP("CPodcastAppUi::ConnectionSelectionEnd() END");
 	}
 
 void CPodcastAppUi::GetErrorTextL(TDes &aErrorMessage, TInt aErrorCode)
--- a/application/src/PodcastShowsView.cpp	Fri Jul 02 16:04:15 2010 +0100
+++ b/application/src/PodcastShowsView.cpp	Mon Jul 05 12:25:54 2010 +0100
@@ -672,7 +672,7 @@
 			toolbar->SetToolbarVisibility(aVisible);
 		}
 	
-		TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && 
+		TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.ActiveFeedInfo() && 
 				iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid();
 	
 		toolbar->HideItem(EPodcastUpdateFeed, updatingState, ETrue );