From aa67147525f6e54def0df936ddcf2061247496a5 Mon Sep 17 00:00:00 2001 From: cold-brewed Date: Wed, 31 Aug 2022 19:46:36 -0400 Subject: [PATCH] Media history: small adjustment for vcpkg builds --- src/qt/qt_mediahistorymanager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/qt/qt_mediahistorymanager.cpp b/src/qt/qt_mediahistorymanager.cpp index 2c08f66f9..a672c0843 100644 --- a/src/qt/qt_mediahistorymanager.cpp +++ b/src/qt/qt_mediahistorymanager.cpp @@ -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 = "";