| 412 | } |
| 413 | |
| 414 | void ProjectTreeView::rowsInserted( const QModelIndex& parent, int start, int end ) |
| 415 | { |
| 416 | QTreeView::rowsInserted( parent, start, end ); |
| 417 | |
| 418 | if ( !parent.model() ) { |
| 419 | const auto& projects = selectedProjects(); |
| 420 | for (const auto& project: projects) { |
| 421 | restoreState( project->project() ); |
| 422 | } |
| 423 | } |
| 424 | } |
| 425 | |
| 426 | void ProjectTreeView::rowsAboutToBeRemoved( const QModelIndex& parent, int start, int end ) |
| 427 | { |