From b021a54e588a8598daf55ea85f8191d161b09333 Mon Sep 17 00:00:00 2001 From: Martchus Date: Mon, 6 Mar 2023 22:20:41 +0100 Subject: [PATCH] Fix compilation with MSVC --- CMakeLists.txt | 2 +- gui/tageditorwidget.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7f000d..ef478e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/gui/tageditorwidget.cpp b/gui/tageditorwidget.cpp index 923d859..a0fa661 100644 --- a/gui/tageditorwidget.cpp +++ b/gui/tageditorwidget.cpp @@ -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 &) {