Bugzilla – Bug 510733
[Qt4-Pkg] Initial Colum Sort Order Does Not Respect Ascending/Descending Setting
Last modified: 2009-09-14 09:49:28 UTC
User-Agent: Mozilla/5.0 (compatible; Konqueror/4.2; Linux) KHTML/4.2.88 (like Gecko) SUSE Devs, After breathing life back into yast (qt45 crash after kde4.3b1 1-click issue), I have noticed a bug in the initial package sort order for packages listed while using the "Repository" view. Specifically, when I have selected sort by package name in ascending order by clicking on the Package header and getting the down looking "V" showing ascending order, *THEN* if I click another repo, the sort order is scatter and random again even though the sort by package name -> ascending indication is still shown: http://www.3111skyline.com/download/openSUSE_bugs/kde4/screenshots/yast2-package-sort-order.jpeg Reproducible: Always Steps to Reproduce: 1. Start Yast SW Mgmt. Select "Repositories" & Select a repository 2. Select Sort Packages Ascending 3. Now select another repo Actual Results: The Package Column is Not Sorted in Ascending Order Expected Results: The Package Column Should be Sorted in Ascending Order
Anything that looks like YaST can be screened by the YaST team.
YaST not sorting lists when switching between eg package groups is quite annoying.
This does not apply just to the Repositories list - it also affects Installation Summary as well. It is necessary to resort the lists manually after every refresh. The other comments are right - it is really annoying and has been there for quite a while.
Created attachment 317940 [details] Patch to resort the pkgList after filtering it I find this bug annoying too, so I decided to try and fix it. The attached patch is pretty simple and adds a slot to resort() the YQPkgList. The filterFinished() signal is then connected to this slot in YQPackageSelector, so that the list is resorted only when the current filter has finished its job. Now, I'm not a Qt4 expert so there might be a better way - but not setSortingEnabled(true) please, it's annoying to see the list re-sort itself every time a package is changed (like, updated). Anyway, I compiled and tested the patch of course, and it works fine so far :)
*** Bug 538851 has been marked as a duplicate of this bug. ***
Fabien, thanks for your patch. yast2-qt-pkg-2.18.12 contains your fix.