SHARE
TWEET

Untitled

a guest Aug 12th, 2017 48 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/src/plugins/debugger/qml/qmlengine.cpp b/src/plugins/debugger/qml/qmlengine.cpp
  2. index 72df4e4..8df56ad 100644
  3. --- a/src/plugins/debugger/qml/qmlengine.cpp
  4. +++ b/src/plugins/debugger/qml/qmlengine.cpp
  5. @@ -1029,7 +1029,11 @@ QString QmlEngine::mangleFilenamePaths(const QString &filename,
  6.      QFileInfo fileInfo(filename);
  7.  
  8.      if (oldBaseDir.exists() && newBaseDir.exists() && fileInfo.exists()) {
  9. -        if (fileInfo.absoluteFilePath().startsWith(oldBaseDir.canonicalPath())) {
  10. +        Qt::CaseSensitivity caseSensitive = Qt::CaseSensitive;
  11. +#ifdef Q_OS_WIN
  12. +        caseSensitive = Qt::CaseInsensitive;
  13. +#endif
  14. +        if (fileInfo.absoluteFilePath().startsWith(oldBaseDir.canonicalPath(), caseSensitive)) {
  15.              QString fileRelativePath = fileInfo.canonicalFilePath().mid(oldBaseDir.canonicalPath().length());
  16.              QFileInfo projectFile(newBaseDir.canonicalPath() + QLatin1Char('/') + fileRelativePath);
RAW Paste Data
Top