QUrl porting bug: Added a missing QUrl::fromLocalFile in FoldersPanel::loadTree to make the FoldersPanel work again

REVIEW: 122631
BUG: 344204
FIXED-IN: 15.04
This commit is contained in:
Emmanuel Pescosta 2015-02-18 17:12:10 +01:00
parent 23e8995771
commit 9221362cea

View file

@ -305,7 +305,7 @@ void FoldersPanel::loadTree(const QUrl& url)
QUrl baseUrl;
if (url.isLocalFile()) {
// Use the root directory as base for local URLs (#150941)
baseUrl = QDir::rootPath();
baseUrl = QUrl::fromLocalFile(QDir::rootPath());
} else {
// Clear the path for non-local URLs and use it as base
baseUrl = url;