D20625: Truncate trailing forward slashes(/)
David Faure
noreply at phabricator.kde.org
Wed Apr 17 13:30:58 BST 2019
dfaure requested changes to this revision.
dfaure added inline comments.
This revision now requires changes to proceed.
INLINE COMMENTS
> kmountpoint.cpp:164
> }
> - // TODO: Strip trailing '/' ?
> + mountedFrom = mountedFrom.left(mountedFrom.lastIndexOf(QLatin1Char('/')));
> }
That would turn "/boot/efi" into "/boot" !!
I wonder, did kmountpointtest still pass?
You want something like this instead:
if (mountedFrom.endsWith('/')) {
mountedFrom.chop(1);
}
REPOSITORY
R241 KIO
REVISION DETAIL
https://phabricator.kde.org/D20625
To: shubham, dfaure
Cc: kde-frameworks-devel, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190417/bfc62418/attachment.html>
More information about the Kde-frameworks-devel
mailing list