* Re #4224: Enable reading and writing Models and Settings from/to Horus radio (SD card) * Fix for findMassstoragePath() on Windows (which got there in previous commit)
This commit is contained in:
committed by
Bertrand Songis
parent
3c62cbf200
commit
e59a51e25f
@@ -400,7 +400,7 @@ bool isRemovableMedia(const QString & vol)
|
||||
}
|
||||
#endif
|
||||
|
||||
QString findMassstoragePath(const QString &filename)
|
||||
QString findMassstoragePath(const QString &filename, bool onlyPath)
|
||||
{
|
||||
QString temppath;
|
||||
QStringList drives;
|
||||
@@ -426,7 +426,7 @@ QString findMassstoragePath(const QString &filename)
|
||||
eepromfile = temppath;
|
||||
eepromfile.append("/" + filename);
|
||||
if (QFile::exists(eepromfile)) {
|
||||
return eepromfile;
|
||||
return onlyPath ? temppath : eepromfile;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -452,7 +452,7 @@ QString findMassstoragePath(const QString &filename)
|
||||
if (QFile::exists(eepromfile)) {
|
||||
#endif
|
||||
free_file_system_list(firstEntry);
|
||||
return eepromfile;
|
||||
return onlyPath ? temppath : eepromfile;
|
||||
}
|
||||
}
|
||||
entry = entry->me_next;
|
||||
|
||||
Reference in New Issue
Block a user