MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / on_tabWidget_currentChanged

Method on_tabWidget_currentChanged

src/tabstructures.cpp:640–651  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

638}
639
640void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected