Fix compilation with MSVC
This commit is contained in:
parent
6f45fd0213
commit
b021a54e58
|
@ -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)
|
||||
|
||||
|
|
|
@ -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 &) {
|
||||
|
|
Loading…
Reference in New Issue