summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--filestreemodel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/filestreemodel.cpp b/filestreemodel.cpp
index a22ea36..e59bd99 100644
--- a/filestreemodel.cpp
+++ b/filestreemodel.cpp
@@ -109,8 +109,8 @@ QVariant FilesTreeModel::data(const QModelIndex &index, int role) const{
}
}
if(index.column() == PartNo){
- if(item->data(PartNo).toInt() == -1){
- return QVariant();
+ if(item->data(PartNo).toInt() < 1 && item->parent() != root()){
+ return "(none)";
}
}
if(index.column() == Quality){