author | tille <tille> | 2002-07-24 11:37:36 (UTC) |
---|---|---|
committer | tille <tille> | 2002-07-24 11:37:36 (UTC) |
commit | adfb21cd5e2fcf750543570ab9c6427f1fba9968 (patch) (unidiff) | |
tree | 1a55eb15bd48b373cd3a88a41cb5733af9f9a4b9 | |
parent | 0948a167e4e46e6d2082809ec47be6a08a5de9d7 (diff) | |
download | opie-adfb21cd5e2fcf750543570ab9c6427f1fba9968.zip opie-adfb21cd5e2fcf750543570ab9c6427f1fba9968.tar.gz opie-adfb21cd5e2fcf750543570ab9c6427f1fba9968.tar.bz2 |
fix bug #116 -- subsections
-rw-r--r-- | noncore/unsupported/oipkg/packagelist.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/noncore/unsupported/oipkg/packagelist.cpp b/noncore/unsupported/oipkg/packagelist.cpp index 998dae9..edb9cc5 100644 --- a/noncore/unsupported/oipkg/packagelist.cpp +++ b/noncore/unsupported/oipkg/packagelist.cpp | |||
@@ -153,4 +153,3 @@ void PackageList::updateSections( Package* pack ) | |||
153 | if ( s.isEmpty() || s == "") return; | 153 | if ( s.isEmpty() || s == "") return; |
154 | if ( sections.contains(s) ) return; | 154 | if ( !sections.contains(s) ) sections += s; |
155 | sections += s; | ||
156 | QString ss = pack->subSection(); | 155 | QString ss = pack->subSection(); |
@@ -163,6 +162,6 @@ void PackageList::updateSections( Package* pack ) | |||
163 | QStringList *subsecs = subSections[s]; | 162 | QStringList *subsecs = subSections[s]; |
164 | *subsecs += ss; | 163 | if ( !subsecs->contains(ss) ) *subsecs += ss; |
165 | if ( !subSections["All"] ) subSections.insert( "All", new QStringList() ); | 164 | // if ( !subSections["All"] ) subSections.insert( "All", new QStringList() ); |
166 | subsecs = subSections["All"]; | 165 | // subsecs = subSections["All"]; |
167 | *subsecs += ss; | 166 | // *subsecs += ss; |
168 | } | 167 | } |