fixed download from RsCollection dialog

This commit is contained in:
csoler 2024-03-14 22:12:57 +01:00
parent 094c80e046
commit 27f0962654
4 changed files with 54 additions and 7 deletions

View file

@ -438,6 +438,13 @@ QVariant RsCollectionModel::decorationRole(const EntryIndex& i,int col) const
return QVariant();
}
bool RsCollectionModel::isChecked(EntryIndex i)
{
if(i.is_file)
return mFileInfos[i.index].is_checked;
else
return mDirInfos[i.index].check_state != DirCheckState::UNSELECTED;
}
void RsCollectionModel::notifyFilesBeingHashed(const std::list<RsFileHash>& files)
{
mFilesBeingHashed.insert(files.begin(),files.end());