mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-24 05:15:40 +03:00
Fix path display in folder wizard
The new implementation did not work correctly when owncloud is installed in a subdirectory.
This commit is contained in:
parent
b680540adf
commit
99dea76fd1
1 changed files with 3 additions and 1 deletions
|
@ -210,8 +210,10 @@ void FolderWizardTargetPage::slotUpdateDirectories(QStringList list)
|
|||
_ui.folderListWidget->clear();
|
||||
QFileIconProvider prov;
|
||||
QIcon folderIcon = prov.icon(QFileIconProvider::Folder);
|
||||
QString webdavFolder = QUrl(ownCloudInfo::instance()->webdavUrl()).path();
|
||||
foreach (QString path, list) {
|
||||
path.remove(QLatin1String("/remote.php/webdav"));
|
||||
path.remove(webdavFolder);
|
||||
if (!path.startsWith("/")) path.prepend('/');
|
||||
new QListWidgetItem(folderIcon, path, _ui.folderListWidget);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue