Qt: use native separators when loading content from file browser.

fixes #8403
This commit is contained in:
CozmoP 2019-03-04 17:27:58 +01:00 committed by GitHub
parent bf8dcd17f3
commit 02e37718e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1748,7 +1748,7 @@ QHash<QString, QString> MainWindow::getFileContentHash(const QModelIndex &index)
QFileInfo fileInfo = m_fileModel->fileInfo(index);
QHash<QString, QString> 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();