| 557 | } |
| 558 | |
| 559 | void MainWindow::saveExternalFile() |
| 560 | { |
| 561 | QString filename = QFileDialog::getSaveFileName(this, tr("Save current audio.conf"), "", "JamesDSP Linux configuration (*.conf)"); |
| 562 | |
| 563 | if (filename == "") |
| 564 | { |
| 565 | return; |
| 566 | } |
| 567 | |
| 568 | if (QFileInfo(filename).suffix() != "conf") |
| 569 | { |
| 570 | filename.append(".conf"); |
| 571 | } |
| 572 | |
| 573 | applyConfig(); |
| 574 | PresetManager::instance().saveToPath(filename); |
| 575 | } |
| 576 | |
| 577 | // Load/save |
| 578 | void MainWindow::loadConfig() |
nothing calls this directly
no test coverage detected