| 638 | } |
| 639 | |
| 640 | void TabStructures::on_tabWidget_currentChanged(int) |
| 641 | { |
| 642 | bool ok = false; |
| 643 | if (!thread.isRunning()) |
| 644 | { |
| 645 | if (ui->tabWidget->currentWidget() == ui->tabStructures) |
| 646 | ok = ui->treeStructs->topLevelItemCount() > 0; |
| 647 | if (ui->tabWidget->currentWidget() == ui->tabQuads) |
| 648 | ok = ui->treeQuads->topLevelItemCount() > 0; |
| 649 | } |
| 650 | ui->pushExport->setEnabled(ok); |
| 651 | } |
nothing calls this directly
no outgoing calls
no test coverage detected