From 12c4272912bb1fb3e1910958a7b9ba22f9befbec Mon Sep 17 00:00:00 2001 From: Kai Uwe Broulik Date: Wed, 15 Mar 2017 15:38:53 +0100 Subject: [PATCH] [PlacesItemModel] Use QDir::homePath() instead of KUser().homeDir() KUser does quite a lot of stuff under the hood and also calls getpwuid which might block with network login. Differential Revision: https://phabricator.kde.org/D5049 --- src/panels/places/placesitemmodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/panels/places/placesitemmodel.cpp b/src/panels/places/placesitemmodel.cpp index 87ed24e90..a4741e746 100644 --- a/src/panels/places/placesitemmodel.cpp +++ b/src/panels/places/placesitemmodel.cpp @@ -32,7 +32,6 @@ #include #include #include -#include #include #include "placesitem.h" #include @@ -888,7 +887,7 @@ void PlacesItemModel::createSystemBookmarks() // i18nc call is done after reading the bookmark. The reason why the i18nc call is not // done here is because otherwise switching the language would not result in retranslating the // bookmarks. - m_systemBookmarks.append(SystemBookmarkData(QUrl::fromLocalFile(KUser().homeDir()), + m_systemBookmarks.append(SystemBookmarkData(QUrl::fromLocalFile(QDir::homePath()), QStringLiteral("user-home"), I18N_NOOP2("KFile System Bookmarks", "Home"))); m_systemBookmarks.append(SystemBookmarkData(QUrl(QStringLiteral("remote:/")), -- 2.47.3