From 03f6c8e2695fc0aeb6733b33df3af3f06096a5f5 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 8 Sep 2022 11:39:54 -0700 Subject: [PATCH] ui: fix network page crash old-commit-hash: 613686855779187db9b20ecee34a4f8b1dd5ce67 --- selfdrive/ui/qt/widgets/controls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/widgets/controls.h b/selfdrive/ui/qt/widgets/controls.h index 1ab7df717f..d8546bb3b5 100644 --- a/selfdrive/ui/qt/widgets/controls.h +++ b/selfdrive/ui/qt/widgets/controls.h @@ -165,7 +165,7 @@ private: p.setPen(Qt::gray); for (int i = 0; i < inner_layout.count() - 1; ++i) { QWidget *widget = inner_layout.itemAt(i)->widget(); - if (widget->isVisible()) { + if (widget == nullptr || widget->isVisible()) { QRect r = inner_layout.itemAt(i)->geometry(); int bottom = r.bottom() + inner_layout.spacing() / 2; p.drawLine(r.left() + 40, bottom, r.right() - 40, bottom);