Bug 200852

Summary: Can't define items order in Folders tab of settings
Product: [Applications] kget Reporter: Alexey Chernov <4ernov>
Component: generalAssignee: KGet bugs <kget-bugs-null>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Alexey Chernov 2009-07-20 12:35:27 UTC
Version:            (using KDE 4.2.4)
Compiler:          GCC 4.3.2 Target: x86_64-unknown-linux-gnu Configured with:  ../gcc-4.3.2/configure --prefix=/usr --libexecdir=/usr/lib --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,fortran,objc,treelang --disable-multilib --enable-c99 --enable-long-long Thread model: posix
OS:                Linux
Installed from:    Compiled From Sources

I found an issue when defining special rules for extensions in Configure - Folders - (V) Except for specific file types - Specify extension and target folder.
Let's say we have two rules: for *.tar.bz2 and for kde*4*.tar.bz2 in File Extension column, two different folders. As I've found out, the second works only if it is placed higher than the first. But this order is valid only till the restart of KGet. After restart the list is somehow sorted and more complex regexps are at the bottom and so they don't work.

To reproduce:
1. Enter *.tar.bz2 for  $HOME/1 folder and kde*4*.tar.bz2 for $HOME/2 folder.
2. Place the second string above the first.
3. Try to download 2 packages, one is random and another of some KDE4 source.
4. See everything works.
5. Exit KGet.
6. Try step 3 another time.
7. See the second string doesn't work.
8. Open Configure - Folders and mention that kde*4*.tar.bz2 string is below the *.tar.bz2.
Comment 1 Alexey Chernov 2009-09-30 23:04:57 UTC
I think WORKSFORME cause there's no Folders tab in Preferences as of KDE 4.3