| 1299 | } |
| 1300 | |
| 1301 | void MainWindow::on_tabWidget_currentChanged(int index) |
| 1302 | { |
| 1303 | if( ui->tabWidget->count() == 0 ) |
| 1304 | { |
| 1305 | return; |
| 1306 | } |
| 1307 | QString tab_name = ui->tabWidget->tabText(index); |
| 1308 | auto tab = getTabByName(tab_name); |
| 1309 | if( tab ) |
| 1310 | { |
| 1311 | const QSignalBlocker blocker( tab ); |
| 1312 | tab->nodeReorder(); |
| 1313 | _current_state.current_tab_name = ui->tabWidget->tabText( index ); |
| 1314 | refreshExpandedSubtrees(); |
| 1315 | tab->zoomHomeView(); |
| 1316 | } |
| 1317 | } |
| 1318 | |
| 1319 | bool MainWindow::SavedState::operator ==(const MainWindow::SavedState &other) const |
| 1320 | { |
nothing calls this directly
no test coverage detected