forked from qt-creator/qt-creator
Qnx: Don't crash on startup.
Change-Id: Id9f41f9ff74bb3d5f0ee91a7a8da0061a437cd2a Reviewed-by: Tobias Nätterlund <tobias.naetterlund@kdab.com> Reviewed-by: David Kaspar <dkaspar@blackberry.com> Reviewed-by: Mehdi Fekari <mfekari@blackberry.com> Reviewed-by: Nicolas Arnaud-Cormos <nicolas@kdab.com>
This commit is contained in:
@@ -149,7 +149,7 @@ void BlackBerryConfigurationManager::loadAutoDetectedConfigurations()
|
|||||||
|
|
||||||
// If no target was/is activated, activate one since it's needed by
|
// If no target was/is activated, activate one since it's needed by
|
||||||
// device connection and CSK code.
|
// device connection and CSK code.
|
||||||
if (activeConfigurations().isEmpty())
|
if (activeConfigurations().isEmpty() && !m_configs.isEmpty())
|
||||||
m_configs.first()->activate();
|
m_configs.first()->activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user