mirror of
https://github.com/YACReader/yacreader
synced 2025-05-28 03:10:27 -04:00
Library: explicit {} on ambiguous 'if if else'
This commit is contained in:
parent
2189e19a91
commit
fb97cfa1dc
@ -159,7 +159,7 @@ QVariant FolderModel::data(const QModelIndex &index, int role) const
|
||||
}
|
||||
|
||||
if (role == Qt::DecorationRole)
|
||||
|
||||
{
|
||||
#ifdef Q_OS_MAC
|
||||
if(item->data(FolderModel::Finished).toBool()){
|
||||
if(finishedFolderIcon.isNull()){
|
||||
@ -177,6 +177,7 @@ QVariant FolderModel::data(const QModelIndex &index, int role) const
|
||||
else
|
||||
return QVariant(YACReader::noHighlightedIcon(":/images/sidebar/folder.png"));
|
||||
#endif
|
||||
}
|
||||
|
||||
if(role == FolderModel::CompletedRole)
|
||||
return item->data(FolderModel::Completed);
|
||||
|
Loading…
Reference in New Issue
Block a user