aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/targetsettingspanel.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@theqtcompany.com>2015-04-20 14:18:54 +0200
committerTobias Hunger <tobias.hunger@theqtcompany.com>2015-04-20 15:00:32 +0000
commit465cf130d71a3beaf9384af3871e3a1a1bcf1499 (patch)
treee7cdbc9fddf5fd940910145543a3061e1358a844 /src/plugins/projectexplorer/targetsettingspanel.cpp
parentcb350bfeb26afaa047f74232b7afc3f143684ef6 (diff)
KitManager: Enable sorting on the target setup page
Add a separate method to sort lists of kits and remove the sortedKits() method again. You should not use the sorted list whenever possible, so requireing a two-step process to get that is not too hard. And it allows to sort sub-sets of all kits, which is exactly what we might have on the TargetSetupPage. Task-number: QTCREATORBUG-13549 Change-Id: Iaa8443bcc8c321425daa13a1fb1e024d18939306 Reviewed-by: Daniel Teske <daniel.teske@theqtcompany.com>
Diffstat (limited to 'src/plugins/projectexplorer/targetsettingspanel.cpp')
-rw-r--r--src/plugins/projectexplorer/targetsettingspanel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/targetsettingspanel.cpp b/src/plugins/projectexplorer/targetsettingspanel.cpp
index 6a74229224..c32f79d712 100644
--- a/src/plugins/projectexplorer/targetsettingspanel.cpp
+++ b/src/plugins/projectexplorer/targetsettingspanel.cpp
@@ -611,7 +611,7 @@ void TargetSettingsPanelWidget::updateTargetButtons()
this, SLOT(duplicateActionTriggered(QAction*)));
connect(removeAction, SIGNAL(triggered()), this, SLOT(removeTarget()));
- foreach (Kit *k, KitManager::sortedKits()) {
+ foreach (Kit *k, KitManager::sortKits(KitManager::kits())) {
if (m_project->target(k))
continue;
createAction(k, m_addMenu);