forked from qt-creator/qt-creator
FilePath: Fix parsing of qrc paths
Change-Id: I50d404bafb8d1cb4f0663cd424e1034ae26bb903 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -821,8 +821,13 @@ void FilePath::setRootAndPath(QStringView path, OsType osType)
|
||||
m_root = "/";
|
||||
m_path = path.mid(1).toString();
|
||||
} else if (path.startsWith(':')) {
|
||||
m_root = ":/";
|
||||
m_path = path.mid(2).toString();
|
||||
if (path.length() > 1 && path[1] == '/') {
|
||||
m_root = ":/";
|
||||
m_path = path.mid(2).toString();
|
||||
} else {
|
||||
m_root = ":";
|
||||
m_path = path.mid(1).toString();
|
||||
}
|
||||
} else {
|
||||
m_root.clear();
|
||||
m_path = path.toString();
|
||||
|
||||
Reference in New Issue
Block a user