Skip to content
Snippets Groups Projects
Commit effa77bb authored by Vitaly Fanaskov's avatar Vitaly Fanaskov
Browse files

Projects path for examples data source converted from native separators

parent 13ec2e12
No related branches found
No related tags found
No related merge requests found
......@@ -114,9 +114,11 @@ void ExamplesDataSource::updateOpenedExamples()
// TODO: check how to get paths for tutorials...
QRegularExpression re(examplePattern().arg(examplePathGroupName()));
for (auto project : ProjectExplorer::SessionManager::projects()) {
if (project)
if (auto match = re.match(project->projectFilePath().toString()); match.hasMatch())
if (project) {
auto projectPath = QDir::fromNativeSeparators(project->projectFilePath().toString());
if (auto match = re.match(projectPath); match.hasMatch())
m_examplePathsByType[examplesKey()] << match.captured(examplePathGroupName());
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment