mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 15:47:22 -08:00
FlashExam: better image path handling
This commit is contained in:
parent
7be7b15e8d
commit
e98f4561f7
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ QString flashExam::displayImage(QString cardText) {
|
||||||
|
|
||||||
if(match.hasMatch()) {
|
if(match.hasMatch()) {
|
||||||
QString imageFile = match.captured(1); // Captured group 1 is the value of IMG
|
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);
|
log("Displaying image '" + imagePath + "'", className);
|
||||||
if(QFile::exists(imagePath)) {
|
if(QFile::exists(imagePath)) {
|
||||||
ui->graphicsView->items().clear();
|
ui->graphicsView->items().clear();
|
||||||
|
|
Loading…
Reference in a new issue