Merge pull request #6857 from ctrlaltdavid/20779

Fix crash in Running Scripts when edit filter after highlighting script
This commit is contained in:
Seth Alves 2016-01-19 11:40:47 -08:00
commit a2bec2a5bf

View file

@ -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) {