|
|
|
@ -81,7 +81,7 @@ bool KNGroupInfo::operator< (const KNGroupInfo &gi2)
|
|
|
|
|
KNGroupListData::KNGroupListData()
|
|
|
|
|
: codecForDescriptions(0)
|
|
|
|
|
{
|
|
|
|
|
groups = new TQSortedList<KNGroupInfo>;
|
|
|
|
|
groups = new TQPtrList<KNGroupInfo>;
|
|
|
|
|
groups->setAutoDelete(true);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -196,7 +196,7 @@ bool KNGroupListData::writeOut()
|
|
|
|
|
|
|
|
|
|
// merge in new groups, we want to preserve the "subscribed"-flag
|
|
|
|
|
// of the loaded groups and the "new"-flag of the new groups.
|
|
|
|
|
void KNGroupListData::merge(TQSortedList<KNGroupInfo>* newGroups)
|
|
|
|
|
void KNGroupListData::merge(TQPtrList<KNGroupInfo>* newGroups)
|
|
|
|
|
{
|
|
|
|
|
bool subscribed;
|
|
|
|
|
|
|
|
|
@ -213,9 +213,9 @@ void KNGroupListData::merge(TQSortedList<KNGroupInfo>* newGroups)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
TQSortedList<KNGroupInfo>* KNGroupListData::extractList()
|
|
|
|
|
TQPtrList<KNGroupInfo>* KNGroupListData::extractList()
|
|
|
|
|
{
|
|
|
|
|
TQSortedList<KNGroupInfo>* temp = groups;
|
|
|
|
|
TQPtrList<KNGroupInfo>* temp = groups;
|
|
|
|
|
groups = 0;
|
|
|
|
|
return temp;
|
|
|
|
|
}
|
|
|
|
@ -417,7 +417,7 @@ void KNGroupManager::showGroupDialog(KNNntpAccount *a, TQWidget *parent)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
TQSortedList<KNGroupInfo> lst2;
|
|
|
|
|
TQPtrList<KNGroupInfo> lst2;
|
|
|
|
|
gDialog->toSubscribe(&lst2);
|
|
|
|
|
for(KNGroupInfo *var=lst2.first(); var; var=lst2.next()) {
|
|
|
|
|
subscribeGroup(var, a);
|
|
|
|
|