| 286 | } |
| 287 | |
| 288 | void MesonConfigPage::removeBuildDir() |
| 289 | { |
| 290 | qCDebug(KDEV_Meson) << "Removing current build directory"; |
| 291 | m_ui->i_buildDirs->blockSignals(true); |
| 292 | m_ui->i_buildDirs->removeItem(m_config.currentIndex); |
| 293 | m_config.removeBuildDir(m_config.currentIndex); |
| 294 | if (m_config.buildDirs.isEmpty()) { |
| 295 | m_config.currentIndex = -1; |
| 296 | } else if (m_config.currentIndex < 0 || m_config.currentIndex >= m_config.buildDirs.size()) { |
| 297 | m_config.currentIndex = 0; |
| 298 | } |
| 299 | m_ui->i_buildDirs->setCurrentIndex(m_config.currentIndex); |
| 300 | m_ui->i_buildDirs->blockSignals(false); |
| 301 | reset(); |
| 302 | writeConfig(); |
| 303 | } |
| 304 | |
| 305 | void MesonConfigPage::changeBuildDirIndex(int index) |
| 306 | { |
nothing calls this directly
no test coverage detected