Merge pull request #2658 from cold-brewed/vcpkg-fix

Media history: small adjustment for vcpkg builds
This commit is contained in:
Miran Grča
2022-09-01 02:39:49 +02:00
committed by GitHub

View File

@@ -289,7 +289,7 @@ MediaHistoryManager::removeMissingImages(device_index_list_t &device_history)
continue;
}
// 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()) {
qWarning("Image file %s does not exist - removing from history", qPrintable(file_info.filePath()));
checked_path = "";