Fix Issue 4026 - Companion 2.2 Model Setup still using SD card BMP (#4027)

directory instead of IMAGES directory for model images.
This commit is contained in:
Jim Taylor
2016-11-16 08:38:17 +01:00
committed by Damjan Adamic
parent 83b81b4bb9
commit 4dda2c64d3
+2 -2
View File
@@ -551,7 +551,7 @@ SetupPanel::SetupPanel(QWidget *parent, ModelData & model, GeneralSettings & gen
QStringList items;
items.append("");
QString path = g.profile[g.id()].sdPath();
path.append("/BMP/");
path.append("/IMAGES/");
QDir qd(path);
if (qd.exists()) {
QStringList filters;
@@ -813,7 +813,7 @@ void SetupPanel::on_image_currentIndexChanged(int index)
if (!lock) {
strncpy(model->bitmap, ui->image->currentText().toLatin1(), 10);
QString path = g.profile[g.id()].sdPath();
path.append("/BMP/");
path.append("/IMAGES/");
QDir qd(path);
if (qd.exists()) {
QString fileName=path;