GNOME Bugzilla – Bug 601304
Search stopped showing results when the previous query doesnt yield any results
Last modified: 2009-11-10 15:41:43 UTC
Created attachment 147321 [details] [review] patch to fix bug in search functionality When we give a query which doesnt have any results, header and resultArea are getting hidden. But they are not shown again next time, when we give a new query. Repro steps: give firefoxzzz as a query and you shouldn't see any results. Then, give another normal query which has some results to show, say firefox. these results will not be shown. I'm attaching a patch which solves the problem to this mail. Thanks. Naagas.
Review of attachment 147321 [details] [review]: ::: js/ui/dash.js @@ -823,4 +824,2 @@ if (itemCount == 0) { section.resultArea.actor.hide(); - } else { - section.resultArea.actor.show(); If changing hide(); to: show(); hide(); Makes any difference, then there's a bug somewhere else. Is this a dup of bug 600890?
Hello Taylor, calling show will actually invoke onMapped callback in genericDisplay.js which will do redisplay based on pendingflags. Yes this bug is dupe of 601030 and can be fixed by 600890 or the patch that i've provided.
Thanks for the patch! However, I'm marking this as a duplicate since I think the 600890 patch is more correct. *** This bug has been marked as a duplicate of bug 600890 ***