D15583: [Balooctl] fix directory parent check

Anthony Fieroni noreply at phabricator.kde.org
Thu Sep 20 13:57:34 BST 2018


anthonyfieroni added a comment.


  In Qt 5.9 (if i remember correct) was introduced to not have trailing '/' so, QDir::separator should not be used, so better get folder as copy
  
    for (QString folder : folders) {
        if (!folder.endsWith(QLatin1Char('/')) {
            folder += QLaitin1Char('/');
        }
        if (path.startsWith(folder)) {

REPOSITORY
  R293 Baloo

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

To: ngraham, #baloo, #dolphin, bruns, #frameworks
Cc: anthonyfieroni, kde-frameworks-devel, ashaposhnikov, michaelh, astippich, spoorun, ngraham, bruns, abrahams
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20180920/d915c798/attachment.htm>


More information about the kfm-devel mailing list