From 02e37718e1160f8bcab9e38e140d65de26b4456e Mon Sep 17 00:00:00 2001 From: CozmoP <25121396+CozmoP@users.noreply.github.com> Date: Mon, 4 Mar 2019 17:27:58 +0100 Subject: [PATCH] Qt: use native separators when loading content from file browser. fixes #8403 --- ui/drivers/qt/ui_qt_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/drivers/qt/ui_qt_window.cpp b/ui/drivers/qt/ui_qt_window.cpp index e9536a6bdb..1bc4e164f7 100644 --- a/ui/drivers/qt/ui_qt_window.cpp +++ b/ui/drivers/qt/ui_qt_window.cpp @@ -1748,7 +1748,7 @@ QHash MainWindow::getFileContentHash(const QModelIndex &index) QFileInfo fileInfo = m_fileModel->fileInfo(index); QHash hash; - hash["path"] = m_fileModel->filePath(index);; + hash["path"] = QDir::toNativeSeparators(m_fileModel->filePath(index)); hash["label"] = hash["path"]; hash["label_noext"] = fileInfo.completeBaseName(); hash["db_name"] = fileInfo.dir().dirName();