equal
deleted
inserted
replaced
2068 QString lastTeam = config->value("frontend/lastSingleplayerTeam", QString()).toString(); |
2068 QString lastTeam = config->value("frontend/lastSingleplayerTeam", QString()).toString(); |
2069 if (!lastTeam.isNull() && !lastTeam.isEmpty()) |
2069 if (!lastTeam.isNull() && !lastTeam.isEmpty()) |
2070 { |
2070 { |
2071 int index = ui.pageCampaign->CBTeam->findData(lastTeam, Qt::DisplayRole); |
2071 int index = ui.pageCampaign->CBTeam->findData(lastTeam, Qt::DisplayRole); |
2072 if(index != -1) |
2072 if(index != -1) |
|
2073 { |
2073 ui.pageCampaign->CBTeam->setCurrentIndex(index); |
2074 ui.pageCampaign->CBTeam->setCurrentIndex(index); |
|
2075 UpdateCampaignPageTeam(index); |
|
2076 } |
2074 index = ui.pageTraining->CBTeam->findData(lastTeam, Qt::DisplayRole); |
2077 index = ui.pageTraining->CBTeam->findData(lastTeam, Qt::DisplayRole); |
2075 if(index != -1) |
2078 if(index != -1) |
|
2079 { |
2076 ui.pageTraining->CBTeam->setCurrentIndex(index); |
2080 ui.pageTraining->CBTeam->setCurrentIndex(index); |
|
2081 UpdateTrainingPageTeam(index); |
|
2082 } |
2077 } |
2083 } |
2078 } |
2084 } |
2079 |
2085 |
2080 void HWForm::UpdateCampaignPage(int index) |
2086 void HWForm::UpdateCampaignPage(int index) |
2081 { |
2087 { |