From 6422b1193f51e218221472ed212699f514545121 Mon Sep 17 00:00:00 2001 From: dt Date: Mon, 17 Jan 2011 15:54:49 +0100 Subject: [PATCH] Fix last commit --- src/plugins/qt4projectmanager/qtversionmanager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/plugins/qt4projectmanager/qtversionmanager.cpp b/src/plugins/qt4projectmanager/qtversionmanager.cpp index a75e1d1583..bf527eba52 100644 --- a/src/plugins/qt4projectmanager/qtversionmanager.cpp +++ b/src/plugins/qt4projectmanager/qtversionmanager.cpp @@ -1526,7 +1526,7 @@ QString QtVersion::resolveLink(const QString &path) const f.setFile(f.symLinkTarget()); if (links <= 0) return QString(); - return f.path(); + return f.filePath(); } QString QtVersion::mwcDirectory() const @@ -1626,7 +1626,7 @@ bool QtVersion::isValid() const && !displayName().isEmpty() && !m_notInstalled && m_versionInfo.contains("QT_INSTALL_BINS") - && !m_mkspecFullPath.isEmpty(); + && (!m_mkspecFullPath.isEmpty() || !m_toolChainUpToDate); } QString QtVersion::invalidReason() const @@ -1642,7 +1642,7 @@ QString QtVersion::invalidReason() const if (!m_versionInfo.contains("QT_INSTALL_BINS")) return QCoreApplication::translate("QtVersion", "Could not determine the path to the binaries of the Qt installation, maybe the qmake path is wrong?"); - if (m_mkspecFullPath.isEmpty()) + if (m_toolChainUpToDate && m_mkspecFullPath.isEmpty()) return QCoreApplication::translate("QtVersion", "The default mkspec symlink is broken."); return QString(); } -- 2.11.0