Merge pull request #8406 from CozmoP/patch-1

Qt: use native separators when loading content from file browser.
This commit is contained in:
Twinaphex 2019-03-04 17:45:06 +01:00 committed by GitHub
commit 26a8a7d391
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();