mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 20:58:30 +02:00
Fix crash in Running Scripts when edit filter after highlighting script
This commit is contained in:
parent
29b9592c8c
commit
51cb9dd05e
1 changed files with 3 additions and 0 deletions
|
@ -99,6 +99,9 @@ QModelIndex ScriptsModel::parent(const QModelIndex& child) const {
|
|||
|
||||
QVariant ScriptsModel::data(const QModelIndex& index, int role) const {
|
||||
TreeNodeBase* node = getTreeNodeFromIndex(index);
|
||||
if (!node) {
|
||||
return QVariant();
|
||||
}
|
||||
if (node->getType() == TREE_NODE_TYPE_SCRIPT) {
|
||||
TreeNodeScript* script = static_cast<TreeNodeScript*>(node);
|
||||
if (role == Qt::DisplayRole) {
|
||||
|
|
Loading…
Reference in a new issue