| 78 | } |
| 79 | |
| 80 | void VisualMainSettings::whenThemeDelete() { |
| 81 | if (editSettings->getColorThemeList().size() <= 1) |
| 82 | return; |
| 83 | int index = ui->themeComboBox->currentIndex(); |
| 84 | editSettings->deleteColorTheme(index); |
| 85 | if (index >= editSettings->getColorThemeList().size()) |
| 86 | index--; |
| 87 | ui->themeComboBox->setCurrentIndex(index); |
| 88 | resetEditSettings(editSettings); |
| 89 | } |
| 90 | |
| 91 | VisualMainSettings::~VisualMainSettings() { delete ui; } |
nothing calls this directly
no test coverage detected