From 1a4053284a8847edbabd5b2f7dd4ef4cd93fd5d7 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 20 Oct 2012 06:02:14 +0200 Subject: Usability: return something if series part is invalid Return "(none)" for readability's sake when we have a single part movie. --- filestreemodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'filestreemodel.cpp') 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){ -- cgit v1.2.3-70-g09d2