Commit 372b10db authored by Kai Koehne's avatar Kai Koehne

FileInProjectFinder: Fix compilation with 4.7.4

Don't depend on QUrl::isLocalFile, which only exists in 4.8.

Change-Id: I67a8e35c8754396424c5578216bc6deb02ae0d50
Reviewed-on: http://codereview.qt.nokia.com/1959Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@nokia.com>
parent d50f99cb
......@@ -98,13 +98,9 @@ void FileInProjectFinder::setProjectFiles(const QStringList &projectFiles)
*/
QString FileInProjectFinder::findFile(const QUrl &fileUrl, bool *success) const
{
QString originalPath;
if (fileUrl.isLocalFile()) {
originalPath = fileUrl.toLocalFile();
} else {
// strip e.g. leading qrc://
QString originalPath = fileUrl.toLocalFile();
if (originalPath.isEmpty()) // e.g. qrc://
originalPath = fileUrl.path();
}
if (originalPath.isEmpty()) {
if (success)
......
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