Fix so toolbars only change visibility for the visible view
authorteknolog
Thu, 25 Feb 2010 20:20:46 +0000
changeset 14 4e75731546eb
parent 13 f58e3c482bd9
child 15 93d9f66bf50b
Fix so toolbars only change visibility for the visible view
application/sis/podcatcher_udeb.sis
application/sis/podcatcher_udeb_signed.sis
application/sis/podcatcher_urel.sis
application/sis/podcatcher_urel_signed.sis
application/src/PodcastFeedView.cpp
application/src/PodcastQueueView.cpp
application/src/PodcastSearchView.cpp
application/src/PodcastShowsView.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/application/src/PodcastFeedView.cpp	Thu Feb 25 20:02:27 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Thu Feb 25 20:20:46 2010 +0000
@@ -553,7 +553,9 @@
 	
 	if (toolbar)
 		{
-		toolbar->SetToolbarVisibility(aVisible);
+		if (iListContainer->IsVisible()) {
+			toolbar->SetToolbarVisibility(aVisible);
+		}
 		toolbar->HideItem(EPodcastUpdateAllFeeds, iUpdatingAllRunning, ETrue);
 		toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iUpdatingAllRunning, ETrue );
 		toolbar->SetItemDimmed(EPodcastAddFeed, iUpdatingAllRunning, ETrue );
--- a/application/src/PodcastQueueView.cpp	Thu Feb 25 20:02:27 2010 +0000
+++ b/application/src/PodcastQueueView.cpp	Thu Feb 25 20:20:46 2010 +0000
@@ -567,8 +567,9 @@
 	if (toolbar) {
 		RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
 		TInt itemCnt = fItems.Count();
-		toolbar->SetToolbarVisibility(aVisible);
-	
+		if (iListContainer->IsVisible()) {
+			toolbar->SetToolbarVisibility(aVisible);
+		}
 		toolbar->HideItem(EPodcastRemoveDownload, EFalse, ETrue);
 		toolbar->HideItem(EPodcastRemoveAllDownloads, EFalse, ETrue);
 		toolbar->SetItemDimmed(EPodcastRemoveDownload, itemCnt == 0, ETrue);
--- a/application/src/PodcastSearchView.cpp	Thu Feb 25 20:02:27 2010 +0000
+++ b/application/src/PodcastSearchView.cpp	Thu Feb 25 20:20:46 2010 +0000
@@ -292,7 +292,9 @@
 	
 	if (toolbar)
 		{
-		toolbar->SetToolbarVisibility(aVisible);
+		if (iListContainer->IsVisible()) {
+			toolbar->SetToolbarVisibility(aVisible);
+		}
 		toolbar->SetItemDimmed(EPodcastAddSearchResult, disableAdd, ETrue );
 		toolbar->HideItem(EPodcastSearch, iSearchRunning, ETrue );
 		toolbar->HideItem(EPodcastCancelUpdateAllFeeds, !iSearchRunning, ETrue);
--- a/application/src/PodcastShowsView.cpp	Thu Feb 25 20:02:27 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Thu Feb 25 20:20:46 2010 +0000
@@ -732,8 +732,10 @@
 		return;
 	}
 	
-	toolbar->SetToolbarVisibility(aVisible);
-
+	if (iListContainer->IsVisible()) {
+		toolbar->SetToolbarVisibility(aVisible);
+	}
+	
 	RShowInfoArray &fItems = iPodcastModel.ActiveShowList();
 	TInt itemCnt = fItems.Count();