mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 04:44:11 +02:00
Merge pull request #6857 from ctrlaltdavid/20779
Fix crash in Running Scripts when edit filter after highlighting script
This commit is contained in:
commit
a2bec2a5bf
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