summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2012-10-20 06:02:14 +0200
committerArno <am@disconnect.de>2012-10-20 06:02:14 +0200
commit1a4053284a8847edbabd5b2f7dd4ef4cd93fd5d7 (patch)
tree9ba396944e49f323c9c1b51a83461773cf5e848f
parentad179bc4eb6845b605c9e4d10171735b90e9cc11 (diff)
downloadSheMov-1a4053284a8847edbabd5b2f7dd4ef4cd93fd5d7.tar.gz
SheMov-1a4053284a8847edbabd5b2f7dd4ef4cd93fd5d7.tar.bz2
SheMov-1a4053284a8847edbabd5b2f7dd4ef4cd93fd5d7.zip
Usability: return something if series part is invalid
Return "(none)" for readability's sake when we have a single part movie.
-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){