forked from qt-creator/qt-creator
Fix Add Library for static libraries
Broke in 7481bff2b4
which split up
LibraryTemplate in SharedLibraryTemplate and StaticLibrary.
Change-Id: I797c007fff09ffd09b7744cf3543217b936dea12
Task-number: QTCREATORBUG-14382
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: BogDan Vatra <bogdan@kde.org>
This commit is contained in:
@@ -1048,7 +1048,8 @@ void InternalLibraryDetailsController::updateProFile()
|
||||
QList<QmakeProFileNode *> proFiles = findQt4ProFiles(rootProject);
|
||||
foreach (QmakeProFileNode *proFileNode, proFiles) {
|
||||
const QString proFilePath = proFileNode->path().toString();
|
||||
if (proFileNode->projectType() == SharedLibraryTemplate) {
|
||||
QmakeProjectManager::QmakeProjectType type = proFileNode->projectType();
|
||||
if (type == SharedLibraryTemplate || type == StaticLibraryTemplate) {
|
||||
const QStringList configVar = proFileNode->variableValue(ConfigVar);
|
||||
if (!configVar.contains(QLatin1String("plugin"))) {
|
||||
const QString relProFilePath = rootDir.relativeFilePath(proFilePath);
|
||||
|
Reference in New Issue
Block a user