mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 20:15:17 +00:00
LibGUI: Fix group name columns in FileSystemModel
This commit is contained in:
parent
6d66462254
commit
c69686f1b2
Notes:
sideshowbarker
2024-07-19 08:53:39 +09:00
Author: https://github.com/xTibor Commit: https://github.com/SerenityOS/serenity/commit/c69686f1b2b Pull-request: https://github.com/SerenityOS/serenity/pull/1350
1 changed files with 3 additions and 3 deletions
|
@ -233,10 +233,10 @@ String FileSystemModel::name_for_uid(uid_t uid) const
|
|||
return (*it).value;
|
||||
}
|
||||
|
||||
String FileSystemModel::name_for_gid(uid_t gid) const
|
||||
String FileSystemModel::name_for_gid(gid_t gid) const
|
||||
{
|
||||
auto it = m_user_names.find(gid);
|
||||
if (it == m_user_names.end())
|
||||
auto it = m_group_names.find(gid);
|
||||
if (it == m_group_names.end())
|
||||
return String::number(gid);
|
||||
return (*it).value;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue