diff options
author | Arno <am@disconnect.de> | 2010-12-12 11:36:42 +0100 |
---|---|---|
committer | Arno <am@disconnect.de> | 2010-12-12 11:36:42 +0100 |
commit | ce8ea0df0dd34e516bfad507c4dfb3735ecdf82b (patch) | |
tree | 83491df938f694d394890077b8cea1dc2b748837 /filestreemodel.cpp | |
parent | f2a3027188423719fcde96dd5975646b7122e268 (diff) | |
download | SheMov-ce8ea0df0dd34e516bfad507c4dfb3735ecdf82b.tar.gz SheMov-ce8ea0df0dd34e516bfad507c4dfb3735ecdf82b.tar.bz2 SheMov-ce8ea0df0dd34e516bfad507c4dfb3735ecdf82b.zip |
Hover fix
When hovering over movies in local mode both the ToolTip and the hover
image was shown. Fixed by only showing the ToolTip when the movie is not
available, eg. archive mode. In any other case incorporate the ToolTip
info into the hover image.
Diffstat (limited to 'filestreemodel.cpp')
-rw-r--r-- | filestreemodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/filestreemodel.cpp b/filestreemodel.cpp index 5bb0741..8fd9e31 100644 --- a/filestreemodel.cpp +++ b/filestreemodel.cpp @@ -157,7 +157,7 @@ QVariant FilesTreeModel::data(const QModelIndex &index, int role) const{ return item->data(index.column()); } if(role == Qt::ToolTipRole){ - if(mMode != Normal){ + if((mMode == Archived) && (item->data(FileType) == Movie)){ int seriesPartId = item->data(SeriesPartId).toInt(); int seriesId = mSeriesModel->seriesIdByPartId(seriesPartId); if(seriesId != -1){ |