diff options
-rw-r--r-- | framework/src/domain/folderlistmodel.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/framework/src/domain/folderlistmodel.cpp b/framework/src/domain/folderlistmodel.cpp index c25e8bd6..1065b4d4 100644 --- a/framework/src/domain/folderlistmodel.cpp +++ b/framework/src/domain/folderlistmodel.cpp | |||
@@ -157,7 +157,9 @@ bool FolderListModel::lessThan(const QModelIndex &left, const QModelIndex &right | |||
157 | bool FolderListModel::acceptRow(int sourceRow, const QModelIndex &sourceParent) const | 157 | bool FolderListModel::acceptRow(int sourceRow, const QModelIndex &sourceParent) const |
158 | { | 158 | { |
159 | auto index = sourceModel()->index(sourceRow, 0, sourceParent); | 159 | auto index = sourceModel()->index(sourceRow, 0, sourceParent); |
160 | Q_ASSERT(index.isValid()); | ||
160 | const auto folder = index.data(Sink::Store::DomainObjectRole).value<Sink::ApplicationDomain::Folder::Ptr>(); | 161 | const auto folder = index.data(Sink::Store::DomainObjectRole).value<Sink::ApplicationDomain::Folder::Ptr>(); |
162 | Q_ASSERT(folder); | ||
161 | const auto enabled = folder->getEnabled(); | 163 | const auto enabled = folder->getEnabled(); |
162 | return enabled; | 164 | return enabled; |
163 | } | 165 | } |