Bug 476090 - Can not remove connection in KCM
Summary: Can not remove connection in KCM
Status: RESOLVED FIXED
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_networkmanagement (show other bugs)
Version: master
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: qt6
Depends on:
Blocks:
 
Reported: 2023-10-25 16:41 UTC by ratijas
Modified: 2023-11-05 20:22 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description ratijas 2023-10-25 16:41:58 UTC
SUMMARY

QtQuick.Dialogs/MessageDialog seem to misbehave when embedded in a QQuickWidget in the «Wi-Fi & Networking» KCM. It simply does not open. With "qt.quick.dialogs" logging category enabled for full debug, the following messages appear when invoking Remove action:

qt.quick.dialogs: open called
qt.quick.dialogs: gHelper_QML_154 attempting to create dialog backend of type 3 with parent window QWindow(0x0)
qt.quick.dialogs: - attempting to create a native dialog
qt.quick.dialogs:   - the platform theme told us a native dialog isn't available; not using native dialog
qt.quick.dialogs: - attempting to create a quick dialog
qt.quick.dialogs: gHelper_QML_154 created -> QQuickPlatformMessageDialog(0x55a2f32aa490)

and nothing visibly happens.

STEPS TO REPRODUCE
1. Open «Wi-Fi & Networking» KCM
2. Choose a Wi-Fi connection
3. Click Remove in the footer, or from a context menu

OBSERVED RESULT
nothing happens

EXPECTED RESULT
prompt dialog should appear

SOFTWARE/OS VERSIONS
Operating System: Arch Linux 
KDE Plasma Version: 5.27.80
KDE Frameworks Version: 5.240.0
Qt Version: 6.6.0
Kernel Version: 6.5.8-arch1-1 (64-bit)
Graphics Platform: X11
Comment 1 Bug Janitor Service 2023-10-25 17:03:10 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-nm/-/merge_requests/300
Comment 2 ratijas 2023-11-05 20:22:28 UTC
Git commit 198ba424f667ce5705de92ac25834fae229ca58b by ivan tkachenko.
Committed on 05/11/2023 at 20:14.
Pushed by redstrate into branch 'master'.

kcm: Unbreak opening "Remove Connection" dialog

> the platform theme told us a native dialog isn't available; not using native dialog

So with our platform theme this dialog shows up as an in-scene popup,
it barely fits into the narrow column, but at least it allows removing
connections once again.

M  +2    -1    kcm/qml/main.qml

https://invent.kde.org/plasma/plasma-nm/-/commit/198ba424f667ce5705de92ac25834fae229ca58b