Allow stat()ing new-account link.
ClosedPublic

Authored by barchiesi on Oct 2 2019, 3:06 PM.

Details

Summary

When stat()ing 'gdrive:/new-account', the slave was actually stat()ing the UDS entry for the account root path.
This patch fixes the issue by not having GDriveUrl::isAccountRoot() return true for 'gdrive:/new-account' and also moves the New Account label logic into GDriveUrl.

Diff Detail

Repository
R219 KIO GDrive
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
barchiesi requested review of this revision.Oct 2 2019, 3:06 PM
barchiesi created this revision.
barchiesi added a project: KIO GDrive.
barchiesi added a subscriber: KIO GDrive.
elvisangelaccio accepted this revision.Oct 2 2019, 8:20 PM
elvisangelaccio added inline comments.
src/gdriveurl.cpp
61–66

How about return m_components.length() == 1 && !isNewAccountPath(); ?

This revision is now accepted and ready to land.Oct 2 2019, 8:20 PM
This revision was automatically updated to reflect the committed changes.