|
|
@ -557,7 +557,7 @@ void Tree::insert(TreeItem *tqreplace, File file)
|
|
|
|
if (mCurrent == tqreplace)
|
|
|
|
if (mCurrent == tqreplace)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mCurrent = created;
|
|
|
|
mCurrent = created;
|
|
|
|
tqrepaintItem(created);
|
|
|
|
repaintItem(created);
|
|
|
|
if (isSelected(tqreplace))
|
|
|
|
if (isSelected(tqreplace))
|
|
|
|
setSelected(created, true);
|
|
|
|
setSelected(created, true);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -624,8 +624,8 @@ void Tree::setCurrent(TreeItem *cur)
|
|
|
|
mCurrent = cur;
|
|
|
|
mCurrent = cur;
|
|
|
|
TQPtrList<TreeItem> oldAutoExpanded = mAutoExpanded;
|
|
|
|
TQPtrList<TreeItem> oldAutoExpanded = mAutoExpanded;
|
|
|
|
mAutoExpanded.clear();
|
|
|
|
mAutoExpanded.clear();
|
|
|
|
tqrepaintItem(old);
|
|
|
|
repaintItem(old);
|
|
|
|
tqrepaintItem(cur);
|
|
|
|
repaintItem(cur);
|
|
|
|
if (cur) cur->autoExpand();
|
|
|
|
if (cur) cur->autoExpand();
|
|
|
|
|
|
|
|
|
|
|
|
// do an anti-intersection on oldAutoUpdated and the new mAutoExpanded
|
|
|
|
// do an anti-intersection on oldAutoUpdated and the new mAutoExpanded
|
|
|
|