File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ QStringList QMLQt5::extractImportsFromFile(const QString &filepath) const {
5757 {
5858 word = word.simplified ();
5959 if (word.startsWith (" //" )) continue ;
60- if (!word.startsWith (" import" )) continue ;
60+ if (!word.startsWith (" import " )) continue ;
6161
6262 imports += extractImportLine (word);
6363 }
Original file line number Diff line number Diff line change @@ -17,10 +17,13 @@ QStringList QMLQt6::extractImportLine(const QString& line) const {
1717 QStringList result;
1818 QStringList list = line.split (" " , splitbehavior);
1919
20+ if (list.size () <= 1 ) {
21+ return {};
22+ }
23+
2024 result << (list[1 ].replace (" ." , " /" ));
2125 return result;
2226
23- return result;
2427}
2528
2629QStringList QMLQt6::extractImportsFromFile (const QString &filepath) const {
You can’t perform that action at this time.
0 commit comments