Commit 1359cccb authored by hjk's avatar hjk

Qnx: Don't crash on startup.

Change-Id: Id9f41f9ff74bb3d5f0ee91a7a8da0061a437cd2a
Reviewed-by: default avatarTobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: default avatarDavid Kaspar <dkaspar@blackberry.com>
Reviewed-by: default avatarMehdi Fekari <mfekari@blackberry.com>
Reviewed-by: Nicolas Arnaud-Cormos's avatarNicolas Arnaud-Cormos <nicolas@kdab.com>
parent 3a5d3a2f
......@@ -149,7 +149,7 @@ void BlackBerryConfigurationManager::loadAutoDetectedConfigurations()
// If no target was/is activated, activate one since it's needed by
// device connection and CSK code.
if (activeConfigurations().isEmpty())
if (activeConfigurations().isEmpty() && !m_configs.isEmpty())
m_configs.first()->activate();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment