fix gallery
parent
f3d5776401
commit
f08859eac7
|
@ -280,8 +280,12 @@ void Exdeath::initConfig(void) {
|
||||||
|
|
||||||
void Exdeath::selNED_index(int idx) {
|
void Exdeath::selNED_index(int idx) {
|
||||||
QString filename = selNED->itemData(idx).toString();
|
QString filename = selNED->itemData(idx).toString();
|
||||||
if (!filename.startsWith(":")) {
|
if (filename == "random") {
|
||||||
filename.append(".png");
|
filename = ":/gallery/ned/random.png";
|
||||||
|
} else if (filename == "vanilla") {
|
||||||
|
filename = ":/gallery/ned/vanilla.png";
|
||||||
|
} else {
|
||||||
|
filename += ".png";
|
||||||
}
|
}
|
||||||
imgPreview = new QPixmap(filename);
|
imgPreview = new QPixmap(filename);
|
||||||
txtPreview->setPixmap(*imgPreview);
|
txtPreview->setPixmap(*imgPreview);
|
||||||
|
|
Loading…
Reference in New Issue