mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-30 04:40:53 +00:00
Fixed: Crash when clicking on an empty area
This commit is contained in:
parent
44cc617603
commit
5ae29fbc63
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue