Bug 200852 - Can't define items order in Folders tab of settings
Summary: Can't define items order in Folders tab of settings
Status: RESOLVED WORKSFORME
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-20 12:35 UTC by Alexey Chernov
Modified: 2009-09-30 23:04 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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