input-rec: Use toNativeSeparators() when opening recording

In the recording viewer
This commit is contained in:
TheLastRar 2024-06-06 13:51:07 +01:00 committed by Connor McLaughlin
parent 58ae9fd355
commit a95288946c
1 changed files with 2 additions and 1 deletions

View File

@ -4,6 +4,7 @@
#include "InputRecordingViewer.h"
#include "QtUtils.h"
#include <QtCore/QDir>
#include <QtCore/QString>
#include <QtWidgets/QDialog>
#include <QtWidgets/qfiledialog.h>
@ -89,7 +90,7 @@ void InputRecordingViewer::openFile()
}
if (!fileNames.isEmpty())
{
const std::string fileName = fileNames.first().toStdString();
const std::string fileName = QDir::toNativeSeparators(fileNames.first()).toStdString();
m_file_open = m_file.openExisting(fileName);
m_ui.actionClose->setEnabled(m_file_open);
if (m_file_open)