From e98f4561f71d41ce688670602f94edc25e690b17 Mon Sep 17 00:00:00 2001 From: Nicolas Mailloux Date: Wed, 4 Dec 2024 12:21:30 -0500 Subject: [PATCH] FlashExam: better image path handling --- src/apps/flashexam.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/flashexam.cpp b/src/apps/flashexam.cpp index 089b87e..9475706 100644 --- a/src/apps/flashexam.cpp +++ b/src/apps/flashexam.cpp @@ -188,7 +188,7 @@ QString flashExam::displayImage(QString cardText) { if(match.hasMatch()) { QString imageFile = match.captured(1); // Captured group 1 is the value of IMG - QString imagePath = "/mnt/onboard/onboard/.flashexam/resources/" + imageFile; + QString imagePath = "/mnt/onboard/onboard/.flashexam/resources/" + listName + "/" + imageFile; log("Displaying image '" + imagePath + "'", className); if(QFile::exists(imagePath)) { ui->graphicsView->items().clear();