Skip to content

Commit

Permalink
Fix windows compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristianFeldmann committed Oct 13, 2024
1 parent 6952a15 commit d433f39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion YUViewLib/src/filesource/FileSource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ bool FileSource::openFile(const std::filesystem::path &filePath)
if (this->isFileOpened && this->srcFile.isOpen())
this->srcFile.close();

this->srcFile.setFileName(QString::fromStdString(filePath));
this->srcFile.setFileName(QString::fromStdString(filePath.string()));
this->isFileOpened = this->srcFile.open(QIODevice::ReadOnly);
if (!this->isFileOpened)
return false;
Expand Down

0 comments on commit d433f39

Please sign in to comment.