Created attachment 422684 [details]
Description of problem:
Launching the search twice with absend / outdated repository info with gpk-application will result in each package matching the search being listed twice
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. sudo yum clean all
2. launch gpk-application, then write something in the search field (i.e. gedit)
3. give the signal to lauch the search at least twice (i.e. press two times enter, or enter + click on find button or two times click on find button)
4. when all repository information has been downloaded and search results appear, notice each match getting listed twice - find example screenshot attached
Relevant matches shown only once
Apart from the bug itself, in my opinion the search button should become insensitive while a search operation is being processed (and also the event sent by enter should be ignored) as an additional visual feedback to the user.
Applied to git master:
Author: Richard Hughes <email@example.com>
Date: Thu Jun 10 10:44:43 2010 +0100
Only mark the find button sensitive if we have valid text _and_ are not searching at this time. Fixes rh#602422
I'll backport to stable (and hence F13) when I do the next upstream release, which is approximately 20 days from now.
Thanks for reporting this bug.