diff options
Diffstat (limited to 'kmail/subscriptiondialog.cpp')
-rw-r--r-- | kmail/subscriptiondialog.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/kmail/subscriptiondialog.cpp b/kmail/subscriptiondialog.cpp index e476749e6..49ece85dd 100644 --- a/kmail/subscriptiondialog.cpp +++ b/kmail/subscriptiondialog.cpp @@ -100,7 +100,7 @@ void SubscriptionDialogBase::moveChildrenToNewParent( GroupItem *oldItem, GroupI { oldItem->takeItem(cur); item->insertItem(cur); - if ( cur->isSelected() ) // we have new tqparents so open them + if ( cur->isSelected() ) // we have new parents so open them folderTree()->ensureItemVisible( cur ); ++it; } @@ -115,15 +115,15 @@ void SubscriptionDialogBase::createListViewItem( int i ) // get the tqparent GroupItem *oldItem = 0; - TQString tqparentPath; - findParentItem( mFolderNames[i], mFolderPaths[i], tqparentPath, &tqparent, &oldItem ); + TQString parentPath; + findParentItem( mFolderNames[i], mFolderPaths[i], parentPath, &tqparent, &oldItem ); - if (!tqparent && tqparentPath != "/") + if (!tqparent && parentPath != "/") { // the tqparent is not available and it's no root-item // this happens when the folders do not arrive in hierarchical order // so we create each tqparent in advance - TQStringList folders = TQStringList::split(mDelimiter, tqparentPath); + TQStringList folders = TQStringList::split(mDelimiter, parentPath); uint i = 0; for ( TQStringList::Iterator it = folders.begin(); it != folders.end(); ++it ) { @@ -198,18 +198,18 @@ void SubscriptionDialogBase::createListViewItem( int i ) //------------------------------------------------------------------------------ -void SubscriptionDialogBase::findParentItem( TQString &name, TQString &path, TQString &tqparentPath, +void SubscriptionDialogBase::findParentItem( TQString &name, TQString &path, TQString &parentPath, GroupItem **tqparent, GroupItem **oldItem ) { // remove the name (and the separator) from the path to get the tqparent path int start = path.length() - (name.length()+2); int length = name.length()+1; if (start < 0) start = 0; - tqparentPath = path; - tqparentPath.remove(start, length); + parentPath = path; + parentPath.remove(start, length); // find the tqparent by it's path - *tqparent = mItemDict[tqparentPath]; + *tqparent = mItemDict[parentPath]; // check if the item already exists *oldItem = mItemDict[path]; |