diff options
Diffstat (limited to 'seriestreemodel.cpp')
-rw-r--r-- | seriestreemodel.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/seriestreemodel.cpp b/seriestreemodel.cpp index 2319c51..c8260c4 100644 --- a/seriestreemodel.cpp +++ b/seriestreemodel.cpp @@ -526,6 +526,9 @@ void SeriesTreeModel::readSettings(){ } void SeriesTreeModel::conditionalUpdate(const QModelIndex &parent, int field, const QVariant &value){ + if(!parent.isValid()){ + return; + } SmTreeItem *item = static_cast<SmTreeItem*>(parent.internalPointer()); if(item->childCount() > 0){ //series |