| 341 | } |
| 342 | |
| 343 | void SettingsDialog::removeDevice() |
| 344 | { |
| 345 | if (this->treeWidgetDevice->selectedItems().count() == 0) |
| 346 | return; |
| 347 | |
| 348 | DatabaseManager::getInstance().deleteDevice(this->treeWidgetDevice->currentItem()->text(0).toInt()); |
| 349 | delete this->treeWidgetDevice->currentItem(); |
| 350 | |
| 351 | loadDevice(); |
| 352 | |
| 353 | EventManager::getInstance().fireRefreshLibraryEvent(RefreshLibraryEvent()); |
| 354 | } |
| 355 | |
| 356 | void SettingsDialog::removeOscOutput() |
| 357 | { |
nothing calls this directly
no test coverage detected