diff --git a/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp b/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp index 55929c70961..bea3a65ca71 100644 --- a/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp +++ b/src/plugins/qmldesigner/libs/designercore/projectstorage/projectstorageupdater.cpp @@ -943,7 +943,8 @@ void ProjectStorageUpdater::updatePropertyEditorFilePath( keyValue("directory id", directoryId)}; QRegularExpression regex{R"xo((.+)\/(\w+)(Specifics|Pane).qml)xo"}; - auto match = regex.match(QStringView{path}.mid(pathOffset)); + auto typePath = QStringView{path}.mid(pathOffset); + auto match = regex.matchView(typePath); QString oldModuleName; ModuleId moduleId; if (match.hasMatch()) {