Commit 0e95246b authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Minor optimization

parent 8a6856d3
...@@ -69,7 +69,7 @@ StartGameDialog::StartGameDialog(QWidget *parent, KgThemeProvider *provider) : ...@@ -69,7 +69,7 @@ StartGameDialog::StartGameDialog(QWidget *parent, KgThemeProvider *provider) :
QList< const KgDifficultyLevel * > diffList = Kg::difficulty()->levels(); QList< const KgDifficultyLevel * > diffList = Kg::difficulty()->levels();
const QIcon icon = QIcon::fromTheme("games-difficult"); const QIcon icon = QIcon::fromTheme("games-difficult");
for (int i = 0; i < diffList.size(); i++) { for (int i = 0; i < diffList.size(); ++i) {
ui->blackSkill->addItem(icon, diffList.at(i)->title()); ui->blackSkill->addItem(icon, diffList.at(i)->title());
ui->whiteSkill->addItem(icon, diffList.at(i)->title()); ui->whiteSkill->addItem(icon, diffList.at(i)->title());
if (diffList.at(i)->isDefault()) { if (diffList.at(i)->isDefault()) {
......
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