Bug 510733 - [Qt4-Pkg] Initial Colum Sort Order Does Not Respect Ascending/Descending Setting
Summary: [Qt4-Pkg] Initial Colum Sort Order Does Not Respect Ascending/Descending Setting
Status: VERIFIED FIXED
: 538851 (view as bug list)
Alias: None
Product: openSUSE 11.2
Classification: openSUSE
Component: YaST2 (show other bugs)
Version: Factory
Hardware: All Other
: P4 - Low : Normal with 10 votes (vote)
Target Milestone: ---
Assignee: Thomas Göttlicher
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-06 06:52 UTC by David Rankin
Modified: 2009-09-14 09:49 UTC (History)
5 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
Patch to resort the pkgList after filtering it (1.49 KB, patch)
2009-09-11 20:36 UTC, Forgotten User eSTct29jGv
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David Rankin 2009-06-06 06:52:25 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
Comment 1 Martin Vidner 2009-07-03 06:04:29 UTC
Anything that looks like YaST can be screened by the YaST team.
Comment 2 Stephan Binner 2009-08-11 13:03:16 UTC
YaST not sorting lists when switching between eg package groups is quite annoying.
Comment 3 Rodney Baker 2009-09-03 06:18:26 UTC
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.
Comment 4 Forgotten User eSTct29jGv 2009-09-11 20:36:30 UTC
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 :)
Comment 5 Stephan Binner 2009-09-14 06:17:47 UTC
*** Bug 538851 has been marked as a duplicate of this bug. ***
Comment 6 Thomas Göttlicher 2009-09-14 09:49:28 UTC
Fabien, thanks for your patch. yast2-qt-pkg-2.18.12 contains your fix.