D28746: Show previews on encrypted filesystems

2020-04-13 Thread Nathaniel Graham
This revision was automatically updated to reflect the committed changes.
Closed by commit R241:ae0beded1fd9: Show previews on encrypted filesystems 
(authored by marcingu, committed by ngraham).

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28746?vs=80022&id=80024

REVISION DETAIL
  https://phabricator.kde.org/D28746

AFFECTED FILES
  src/widgets/previewjob.cpp

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Nathaniel Graham
ngraham added a comment.


  Excellent job. This is a real improvement. Keep the great patches coming! :)

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Nathaniel Graham
ngraham edited the summary of this revision.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Ivan Čukić
ivan accepted this revision.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Marcin Gurtowski
marcingu marked an inline comment as done.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Marcin Gurtowski
marcingu updated this revision to Diff 80022.
marcingu added a comment.


  Removing extra whitespaces

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28746?vs=79991&id=80022

REVISION DETAIL
  https://phabricator.kde.org/D28746

AFFECTED FILES
  src/widgets/previewjob.cpp

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Nathaniel Graham
ngraham added inline comments.

INLINE COMMENTS

> ngraham wrote in previewjob.cpp:718
> unrelated change

Now there are extra spaces on that line. :)

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Marcin Gurtowski
marcingu marked 2 inline comments as done.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Marcin Gurtowski
marcingu updated this revision to Diff 79991.
marcingu added a comment.


  Moving boolean variables to the front of logic statement.

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28746?vs=79985&id=79991

REVISION DETAIL
  https://phabricator.kde.org/D28746

AFFECTED FILES
  src/widgets/previewjob.cpp

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread David Faure
dfaure added inline comments.

INLINE COMMENTS

> previewjob.cpp:307
>  
> +//Prepare encryptedMountsList for which will be used in ::slotThumbData
>  const auto mountsList = KMountPoint::currentMountPoints();

"for which will be used" ... remove `for` ?

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Ivan Čukić
ivan added inline comments.

INLINE COMMENTS

> previewjob.cpp:697
>   
> !currentItem.item.url().adjusted(QUrl::RemoveFilename).toLocalFile().startsWith(thumbRoot))
> -&& !sequenceIndex;
> +&& !sequenceIndex && !isEncrypted;
>  QImage thumb;

Since you are already changing this, move these two checks to the line after 
`bSave` - short-circuit logic to skip calling `->property` and the rest if 
these two are not satisfied.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Marcin Gurtowski
marcingu updated this revision to Diff 79985.
marcingu added a comment.


  Review fixes

REPOSITORY
  R241 KIO

CHANGES SINCE LAST UPDATE
  https://phabricator.kde.org/D28746?vs=79832&id=79985

REVISION DETAIL
  https://phabricator.kde.org/D28746

AFFECTED FILES
  src/widgets/previewjob.cpp

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Marcin Gurtowski
marcingu marked 2 inline comments as done.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-13 Thread Ivan Čukić
ivan added inline comments.

INLINE COMMENTS

> previewjob.cpp:692
>  {
> +bool isEncrypted = 
> encryptedMountsList.findByPath(currentItem.item.url().toLocalFile());
>  bool save = bSave &&

`const`

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-12 Thread Nathaniel Graham
ngraham accepted this revision.
ngraham added a comment.
This revision is now accepted and ready to land.


  Works and looks good to me modulo one comment, but let's wait for the other 
reviewers too.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure, ngraham
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-12 Thread Nathaniel Graham
ngraham added reviewers: ivan, Frameworks, dfaure.
ngraham added a comment.


  General idea looks sane to me. Thanks for working on this; it's been one of 
those minor annoyances of mine.

INLINE COMMENTS

> previewjob.cpp:718
>  }
> -
>  if (save) {

unrelated change

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu, ivan, #frameworks, dfaure
Cc: ngraham, kde-frameworks-devel, LeGast00n, cblack, michaelh, bruns


D28746: Show previews on encrypted filesystems

2020-04-11 Thread Marcin Gurtowski
marcingu added a dependent revision: D28745: Skipping catching of thumbnails on 
encrytped filesystems.

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

To: marcingu
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns


D28746: Show previews on encrypted filesystems

2020-04-11 Thread Marcin Gurtowski
marcingu created this revision.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
marcingu requested review of this revision.

REVISION SUMMARY
  Instead of skipping generating previews on encrypted filesystems, do create 
them but don't cache.
  BUG: 411919

REPOSITORY
  R241 KIO

REVISION DETAIL
  https://phabricator.kde.org/D28746

AFFECTED FILES
  src/widgets/previewjob.cpp

To: marcingu
Cc: kde-frameworks-devel, LeGast00n, cblack, GB_2, michaelh, ngraham, bruns