Commit c9a7d77c authored by Ralf Habacker's avatar Ralf Habacker
Browse files

Win32 fix of absolute file name detection.

parent cbe3f14c
......@@ -376,8 +376,9 @@ bool NativeImportBase::parseFile(const QString& filename)
uDebug() << msgPrefix << "adding path " << path;
Import_Utils::addIncludePath(path);
}
if (! QFile::exists(filename)) {
if (filename.startsWith('/')) {
if (!QFile::exists(filename)) {
QFileInfo fi(filename);
if (fi.isAbsolute()) {
uError() << msgPrefix << "cannot find file";
return false;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment