From 7b8bd6e19309d8c4e7dc958adf9bf03298f5077d Mon Sep 17 00:00:00 2001 From: Jarek Kobus <jkobus@trolltech.com> Date: Tue, 24 Aug 2010 13:51:19 +0200 Subject: [PATCH] Fix AddLibraryWizard for Mac as well Task-number: QTCREATORBUG-125 --- src/plugins/qt4projectmanager/librarydetailscontroller.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/qt4projectmanager/librarydetailscontroller.cpp b/src/plugins/qt4projectmanager/librarydetailscontroller.cpp index e7d094ba158..9c96ef798fe 100644 --- a/src/plugins/qt4projectmanager/librarydetailscontroller.cpp +++ b/src/plugins/qt4projectmanager/librarydetailscontroller.cpp @@ -43,12 +43,16 @@ LibraryDetailsController::LibraryDetailsController( #endif #ifdef Q_OS_WIN m_creatorPlatform = CreatorWindows; +#endif +#ifndef Q_OS_LINUX // project for which we are going to insert the snippet const ProjectExplorer::Project *project = ProjectExplorer::ProjectExplorerPlugin::instance()->session()->projectForFile(proFile); + // take active build configuration for it Qt4BuildConfiguration *qt4BuildConfiguration = qobject_cast<Qt4BuildConfiguration *>(project->activeTarget()->activeBuildConfiguration()); + // if its toolchain is maemo behave the same as we would be on linux if (qt4BuildConfiguration && qt4BuildConfiguration->toolChainType() == ProjectExplorer::ToolChain::GCC_MAEMO) m_creatorPlatform = CreatorLinux; #endif -- GitLab