https://bugs.kde.org/show_bug.cgi?id=461028

Nate Graham <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|                            |https://invent.kde.org/plas
                   |                            |ma/plasma-nm/-/commit/84c43
                   |                            |2d7c310fb351cc56ebc988d0ba1
                   |                            |48e915aa
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #6 from Nate Graham <[email protected]> ---
Git commit 84c432d7c310fb351cc56ebc988d0ba148e915aa by Nate Graham, on behalf
of Sergey Katunin.
Committed on 08/07/2026 at 19:09.
Pushed by ngraham into branch 'master'.

networkmodel: fix case when NM D-Bus `GetSettings` returns empty connection

#### Short description

NM D-Bus `GetSettings`:
```
qdbus --system --literal org.freedesktop.NetworkManager
/org/freedesktop/NetworkManager/Settings/1
org.freedesktop.NetworkManager.Settings.Connection.GetSettings
```

can return empty connection if user has no permission to perform this operation
(for example, if this connection is not public).

So, we need read public settings (id, name, type) from `ActiveConnection`
object.

#### Current behaviour

And for example, if you connect to non-public (not for all users) Wi-Fi under
one `userA`, and then switch to another `userB`, then there is a bug when the
Wi-Fi widget displays as if we are connected to all Wi-Fi at the same time (all
Wi-Fi connections is active).

<details>
<summary>Video before patch</summary>

![wi-fi_bug_before_patch](/uploads/785f32666d40751da9b6ac4ca6d8a3f3/wi-fi_bug_before_patch.mp4)

</details>

#### Expected behaviour

`userB` should only see an active connection in the widget, but should not be
able to turn it off or change it.

<details>
<summary>Video after patch</summary>

![wi-fi_bug_after_patch](/uploads/47d0f9f5c3277586afaceea35c42b5a8/wi-fi_bug_after_patch.mp4)

</details>

M  +12   -6    libs/editor/connectioneditorbase.cpp
M  +75   -7    libs/models/networkmodel.cpp
M  +1    -0    libs/models/networkmodel.h
M  +4    -1    libs/models/networkmodelitem.cpp

https://invent.kde.org/plasma/plasma-nm/-/commit/84c432d7c310fb351cc56ebc988d0ba148e915aa

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to