--- a/samba/filepropertiesplugin/usermanager.cpp +++ b/samba/filepropertiesplugin/usermanager.cpp @@ -51,9 +51,12 @@ static QStringList getUsersList() } KUser user(username); const uid_t nativeId = user.userId().nativeId(); - if (nativeId >= defminuid && nativeId <= defmaxuid) { + if (nativeId >= defminuid) { userList << username; } + if (userList.size() >= defmaxuid) { + break; + } } return userList;