From 84d5adedd843d4e48690ff521cd7a51b71644dfc Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Fri, 22 Oct 2021 21:04:00 -0700 Subject: [PATCH] UI: fix fcc.html when using QRC --- selfdrive/ui/qt/offroad/settings.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 26ecc0e0e..35ae2fc91 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -147,7 +147,7 @@ DevicePanel::DevicePanel(QWidget* parent) : ListWidget(parent) { if (Hardware::TICI()) { regulatoryBtn = new ButtonControl("Regulatory", "VIEW", ""); connect(regulatoryBtn, &ButtonControl::clicked, [=]() { - const std::string txt = util::read_file(ASSET_PATH.toStdString() + "/offroad/fcc.html"); + const std::string txt = util::read_file("../assets/offroad/fcc.html"); RichTextDialog::alert(QString::fromStdString(txt), this); }); }