summaryrefslogtreecommitdiffstats
path: root/src/linguist/shared/ioutils.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@digia.com>2014-06-26 12:37:39 +0200
committerOswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>2015-12-18 14:45:32 +0000
commitd63829bb280eae8b60b87584525c58bb3f7f8ade (patch)
treed244ff27179a240865c20acdaf139d44a200239d /src/linguist/shared/ioutils.cpp
parent72046482fd9ce177ce07bf543bfe751b13909492 (diff)
consider qt resource paths absolute
this doesn't actually do anything in linguist, as the define is not set. Task-number: QTCREATORBUG-12528 Change-Id: I2b6b7e02cf38881d40bd78bb0d705f7d58d0736c Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com> (cherry picked from qtcreator/d0428a05220ed0550dd84cdb8299a1fb37b0fe72) Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
Diffstat (limited to 'src/linguist/shared/ioutils.cpp')
-rw-r--r--src/linguist/shared/ioutils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/linguist/shared/ioutils.cpp b/src/linguist/shared/ioutils.cpp
index 1a7710827..54cb694fc 100644
--- a/src/linguist/shared/ioutils.cpp
+++ b/src/linguist/shared/ioutils.cpp
@@ -68,6 +68,10 @@ bool IoUtils::isRelativePath(const QString &path)
{
if (path.startsWith(QLatin1Char('/')))
return false;
+#ifdef QMAKE_BUILTIN_PRFS
+ if (path.startsWith(QLatin1String(":/")))
+ return false;
+#endif
#ifdef Q_OS_WIN
if (path.startsWith(QLatin1Char('\\')))
return false;