diff options
| author | Kai Uwe Broulik <[email protected]> | 2017-03-15 15:38:53 +0100 |
|---|---|---|
| committer | Kai Uwe Broulik <[email protected]> | 2017-03-15 15:38:53 +0100 |
| commit | 12c4272912bb1fb3e1910958a7b9ba22f9befbec (patch) | |
| tree | 8ae72b9acc26999734a1c178d0773943e8b9cbb3 /src/panels | |
| parent | 429427767bc6340ac8aafea3736b575ddcf186b4 (diff) | |
[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
Diffstat (limited to 'src/panels')
| -rw-r--r-- | src/panels/places/placesitemmodel.cpp | 3 |
1 files changed, 1 insertions, 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 <KProtocolInfo> #include <KLocalizedString> #include <QStandardPaths> -#include <KUser> #include <KAboutData> #include "placesitem.h" #include <QAction> @@ -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:/")), |
