Fixed: Crash when clicking on an empty area

This commit is contained in:
kervala 2010-10-29 14:11:37 +02:00
parent 9c5af189f6
commit 1cdeb07b5d

View file

@ -221,8 +221,8 @@ void CParticleWorkspaceDialog::clickedItem(const QModelIndex & index)
if (index.flags() != Qt::NoItemFlags)
_PropertyDialog->setCurrentEditedElement(_currentItem);
if ((_currentItem->itemType() == ItemType::Workspace) ||
(_currentItem->itemType() == ItemType::ParticleSystemNotLoaded))
if (_currentItem && ((_currentItem->itemType() == ItemType::Workspace) ||
(_currentItem->itemType() == ItemType::ParticleSystemNotLoaded)))
_currentItem = NULL;
}