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;
|
QStringList items;
|
||||||
items.append("");
|
items.append("");
|
||||||
QString path = g.profile[g.id()].sdPath();
|
QString path = g.profile[g.id()].sdPath();
|
||||||
path.append("/BMP/");
|
path.append("/IMAGES/");
|
||||||
QDir qd(path);
|
QDir qd(path);
|
||||||
if (qd.exists()) {
|
if (qd.exists()) {
|
||||||
QStringList filters;
|
QStringList filters;
|
||||||
@@ -813,7 +813,7 @@ void SetupPanel::on_image_currentIndexChanged(int index)
|
|||||||
if (!lock) {
|
if (!lock) {
|
||||||
strncpy(model->bitmap, ui->image->currentText().toLatin1(), 10);
|
strncpy(model->bitmap, ui->image->currentText().toLatin1(), 10);
|
||||||
QString path = g.profile[g.id()].sdPath();
|
QString path = g.profile[g.id()].sdPath();
|
||||||
path.append("/BMP/");
|
path.append("/IMAGES/");
|
||||||
QDir qd(path);
|
QDir qd(path);
|
||||||
if (qd.exists()) {
|
if (qd.exists()) {
|
||||||
QString fileName=path;
|
QString fileName=path;
|
||||||
|
|||||||
Reference in New Issue
Block a user