Skip to content

wifi: Avoid critical warning for hotspot dialog

The CcWifiHotspotDialog is derived from GtkDialog, which is floating. The floating reference is destroyed on closing the main window, before the NetDeviceWifi is disposed. This causes a critical warning when the NetDeviceWifi dispose does run, since it tries to destroy a now non-existent window.

Fix this by sinking the floating reference, and unreffing it in the NetDeviceWifi dispose function.

Fixes #2823 (closed)

Merge request reports