forked from qt-creator/qt-creator
Use Utils::FileName for various bits in QtVersion
Change-Id: I3afc3a4f2e0dd2671279c2d071779f1d7b277849 Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -357,7 +357,7 @@ void Qt4ProjectConfigWidget::updateImportLabel()
|
||||
else
|
||||
makefile.append(m_buildConfiguration->makefile());
|
||||
|
||||
QString qmakePath = QtSupport::QtVersionManager::findQMakeBinaryFromMakefile(makefile);
|
||||
Utils::FileName qmakePath = QtSupport::QtVersionManager::findQMakeBinaryFromMakefile(makefile);
|
||||
QtSupport::BaseQtVersion *version = m_buildConfiguration->qtVersion();
|
||||
// check that there's a makefile
|
||||
if (!qmakePath.isEmpty()) {
|
||||
@@ -367,7 +367,7 @@ void Qt4ProjectConfigWidget::updateImportLabel()
|
||||
if (mc == QtSupport::QtVersionManager::DifferentProject) {
|
||||
incompatibleBuild = true;
|
||||
} else if (mc == QtSupport::QtVersionManager::SameProject) {
|
||||
if (qmakePath != (version ? version->qmakeCommand() : QString())) {
|
||||
if (qmakePath != (version ? version->qmakeCommand() : Utils::FileName())) {
|
||||
// and that the qmake path is different from the current version
|
||||
// import enable
|
||||
visible = true;
|
||||
|
||||
Reference in New Issue
Block a user