From f08859eac7289693c8939782f759a65eba5677c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=ADle=20Ekaterin=20Liszka?= Date: Sun, 2 Jul 2023 05:15:47 -0700 Subject: [PATCH] fix gallery --- src/exdeath.cc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/exdeath.cc b/src/exdeath.cc index 7f49094..bd8689f 100644 --- a/src/exdeath.cc +++ b/src/exdeath.cc @@ -280,8 +280,12 @@ void Exdeath::initConfig(void) { void Exdeath::selNED_index(int idx) { QString filename = selNED->itemData(idx).toString(); - if (!filename.startsWith(":")) { - filename.append(".png"); + if (filename == "random") { + filename = ":/gallery/ned/random.png"; + } else if (filename == "vanilla") { + filename = ":/gallery/ned/vanilla.png"; + } else { + filename += ".png"; } imgPreview = new QPixmap(filename); txtPreview->setPixmap(*imgPreview);