| 145 | } |
| 146 | |
| 147 | void EnvironmentWidget::loadSettings( KConfig* config ) |
| 148 | { |
| 149 | qCDebug(SHELL) << "Loading profiles from config"; |
| 150 | m_environmentProfileListModel->loadFromConfig(config); |
| 151 | |
| 152 | const int defaultProfileIndex = m_environmentProfileListModel->defaultProfileIndex(); |
| 153 | ui.profileSelect->setCurrentIndex(defaultProfileIndex); |
| 154 | } |
| 155 | |
| 156 | void EnvironmentWidget::saveSettings( KConfig* config ) |
| 157 | { |