fix gallery

main
Síle Ekaterin Liszka 2023-07-02 05:15:47 -07:00
parent f3d5776401
commit f08859eac7
1 changed files with 6 additions and 2 deletions

View File

@ -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);