If we list the archive in the Archive constructor, we can drop the m_hasBeenListed flag
and also the listIfNotListed() function.
This way we can also mark isPasswordProtected() as const.
Details
Details
- Reviewers
rthomsen
Diff Detail
Diff Detail
- Repository
- R36 Ark
- Branch
- nolistIfNotListed
- Lint
No Linters Available - Unit
No Unit Test Coverage
Comment Actions
After a 2nd thougth, this is very bad idea. If the archive is huge, we actually end up listing it twice: once in the constructor and once in ArchiveModel::setArchive().
I'll have to think to another solution...
Comment Actions
I'm discarding this patch. I discovered another (related) issue with the properties dialog, which I will address in another diff.