Commit b663fc95 authored by Marco Bubke's avatar Marco Bubke Committed by hjk

Fix debug to running application

If there was only one kit and no selection for the last kit saved you
got no process list.

Change-Id: Ie4b770cdb9b92860fb8154eed9a80e6d0d64335d
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent 51350ef6
......@@ -106,7 +106,8 @@ void KitChooser::populate()
const int n = m_chooser->count();
const int index = Core::ICore::settings()->value(QLatin1String(lastKitKey)).toInt();
m_chooser->setCurrentIndex(0 <= index && index < n ? index : -1);
if (0 <= index && index < n)
m_chooser->setCurrentIndex(index);
m_chooser->setEnabled(n > 1);
if (n > 1)
......
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