| 262 | |
| 263 | |
| 264 | void EffectSelectDialog::updateSelection() |
| 265 | { |
| 266 | // no valid selection anymore due to changed filter? |
| 267 | if( ui->pluginList->selectionModel()->selection().size() <= 0 ) |
| 268 | { |
| 269 | // then select our first item |
| 270 | ui->pluginList->selectionModel()->select( m_model.index( 0, 0 ), |
| 271 | QItemSelectionModel::ClearAndSelect |
| 272 | | QItemSelectionModel::Rows ); |
| 273 | rowChanged( m_model.index( 0, 0 ), QModelIndex() ); |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | |
| 278 |