Fix a crash by clearing our reference to the menuwidget when it is deleted
[dhcpcd-ui] / src / dhcpcd-qt / dhcpcd-wi.cpp
index 16767c3f0874ea54f3456e921b2a613f8f47a239..060b2b30c104361a67930230ccb054d1079c339c 100644 (file)
@@ -95,7 +95,7 @@ bool DhcpcdWi::setScans(DHCPCD_WI_SCAN *scans)
 {
        bool changed = false;
 
-       if (menu && menu->isVisible()) {
+       if (menu) {
                QList<DhcpcdSsidMenu*> lst;
                DHCPCD_WI_SCAN *scan;
                DHCPCD_IF *i;