Media history: small adjustment for vcpkg builds
This commit is contained in:
@@ -289,7 +289,7 @@ MediaHistoryManager::removeMissingImages(device_index_list_t &device_history)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
// For this check, explicitly prepend `usr_path` to relative paths to account for $CWD platform variances
|
// For this check, explicitly prepend `usr_path` to relative paths to account for $CWD platform variances
|
||||||
QFileInfo absolute_path = file_info.isRelative() ? getUsrPath().append(file_info.filePath()) : file_info;
|
QFileInfo absolute_path = file_info.isRelative() ? QFileInfo(getUsrPath().append(file_info.filePath())) : file_info;
|
||||||
if(!absolute_path.exists()) {
|
if(!absolute_path.exists()) {
|
||||||
qWarning("Image file %s does not exist - removing from history", qPrintable(file_info.filePath()));
|
qWarning("Image file %s does not exist - removing from history", qPrintable(file_info.filePath()));
|
||||||
checked_path = "";
|
checked_path = "";
|
||||||
|
Reference in New Issue
Block a user