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:
committed by
Damjan Adamic
parent
83b81b4bb9
commit
4dda2c64d3
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user