Use isPathAbsolute() to guard against file names starting with ':'
':' at the beginning of a path/filename denotes a Qt Resource and in that case QDir::isAbsolutePath() would return true, which isn't what we want in these cases.
':' at the beginning of a path/filename denotes a Qt Resource and in that case QDir::isAbsolutePath() would return true, which isn't what we want in these cases.