Skip to content

Commit

Permalink
Fix compilation with MSVC
Browse files Browse the repository at this point in the history
  • Loading branch information
Martchus committed Mar 6, 2023
1 parent 6f45fd0 commit b021a54
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion gui/tageditorwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 &) {
Expand Down

0 comments on commit b021a54

Please sign in to comment.