summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scribus/outlinepalette.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scribus/outlinepalette.cpp b/scribus/outlinepalette.cpp
index 5a0f058..847bc19 100644
--- a/scribus/outlinepalette.cpp
+++ b/scribus/outlinepalette.cpp
@@ -404,7 +404,7 @@ void OutlinePalette::slotShowSelect(uint SNr, int Nr)
{
PageItem *item = currDoc->m_Selection->itemAt(a);
QTreeWidgetItem *retVal = getListItem(item->OwnPage, item->ItemNr);
- if (retVal != 0)
+ if (retVal != 0 && !retVal->isHidden())
itemSelection.append(retVal);
}
reportDisplay->selectItems(itemSelection);
@@ -412,7 +412,7 @@ void OutlinePalette::slotShowSelect(uint SNr, int Nr)
else
{
QTreeWidgetItem *retVal = getListItem(SNr, Nr);
- if (retVal != 0)
+ if (retVal != 0 && !retVal->isHidden())
retVal->setSelected(true);
}
QList<QTreeWidgetItem *> items = reportDisplay->selectedItems();
@@ -823,9 +823,9 @@ void OutlinePalette::BuildTree(bool storeVals)
if (storeVals)
reopenTree();
setUpdatesEnabled(true);
+ filterTree();
if (currDoc->m_Selection->count() > 0)
slotShowSelect(0, -1);
- filterTree();
repaint();
connect(reportDisplay, SIGNAL(itemSelectionChanged()), this, SLOT(slotMultiSelect()));
connect(reportDisplay, SIGNAL(itemChanged(QTreeWidgetItem*, int)), this, SLOT(slotDoRename(QTreeWidgetItem*, int)));