Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37706372
en ru br
ALT Linux repos
S:23.04.3-alt2

Group :: Graphical desktop/KDE
RPM: kde5-network-filesharing

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: alt-share-under-domain-user.patch
Download


diff --git a/kdenetwork-filesharing/samba/filepropertiesplugin/usermanager.cpp b/kdenetwork-filesharing/samba/filepropertiesplugin/usermanager.cpp
index 7ae0f22..1d46026 100644
--- a/samba/filepropertiesplugin/usermanager.cpp
+++ b/samba/filepropertiesplugin/usermanager.cpp
@@ -154,7 +154,10 @@ void UserManager::load()
         }
 
         const QString currentUserName = KUser().loginName();
-        const QStringList nameList = getUsersList();
+        QStringList nameList = getUsersList();
+        if (!nameList.contains(currentUserName))
+            nameList.append(currentUserName);
+
         for (const auto &name : nameList) {
             ++m_waitingForResolution;
             auto user = new User(name, this);
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin