MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / onRemoveTLESource

Method onRemoveTLESource

Settings/TLESourceTab.cpp:325–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323}
324
325void
326TLESourceTab::onRemoveTLESource(void)
327{
328 if (this->ui->tleSourceTable->currentRow() >= 0) {
329 auto sus = Suscan::Singleton::get_instance();
330
331 QString text = this->ui->tleSourceTable->itemAt(
332 0,
333 this->ui->tleSourceTable->currentRow())->text();
334 if (sus->removeTLESource(text.toStdString())) {
335 this->ui->tleSourceTable->removeRow(
336 this->ui->tleSourceTable->currentRow());
337 this->refreshUi();
338 } else {
339 QMessageBox::warning(
340 this,
341 "Source " + text + " is a default source and cannot be removed.",
342 "Remove TLE source");
343 }
344 }
345}
346
347void
348TLESourceTab::onDownloadStart(void)

Callers

nothing calls this directly

Calls 2

refreshUiMethod · 0.95
removeTLESourceMethod · 0.80

Tested by

no test coverage detected