When doing iconNameForUrl("trash:/") reflect the state of the trash (full or empty)
Details
Details
- Reviewers
hein dfaure - Commits
- R241:ca6e6c0469a5: Reflect trash state in iconNameForUrl
Did KIO::iconNameForUrl("trash:/") with empty trash, it was "user-trash", then I trashed a file and it returned "user-trash-full", see also D5198
Diff Detail
Diff Detail
- Repository
- R241 KIO
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
Hmm, i don't know about the performance penalty you get when using KConfig...
It "looks" ok, but that's without knowing the above.
+1, ship it is for someone else.
Comment Actions
Yep it means parsing a file, but that file is exactly 2 lines long and this is only done when asking about trash:/ so I think it's fine.