Fix compilation with MSVC

This commit is contained in:
Martchus 2023-03-06 22:20:41 +01:00
parent 6f45fd0213
commit b021a54e58
2 changed files with 2 additions and 2 deletions

View File

@ -184,7 +184,7 @@ set(REQUIRED_ICONS
set(CONFIGURATION_PACKAGE_SUFFIX
""
CACHE STRING "sets the suffix for find_package() calls to packages configured via c++utilities")
find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.5.0 REQUIRED)
find_package(c++utilities${CONFIGURATION_PACKAGE_SUFFIX} 5.21.0 REQUIRED)
use_cpp_utilities()
include(BasicConfig)

View File

@ -1408,7 +1408,7 @@ void QtGui::TagEditorWidget::renameFile()
std::filesystem::rename(oldPath, newPath);
// open again with write access
m_fileInfo.reportPathChanged(newPath.u8string());
m_fileInfo.reportPathChanged(extractNativePath(newPath.native()));
try {
m_fileInfo.stream().open(m_fileInfo.path().data(), ios_base::in | ios_base::out | ios_base::binary);
} catch (const std::ios_base::failure &) {