| 76 | } |
| 77 | |
| 78 | void PresetManager::saveToPath(const QString &filename) |
| 79 | { |
| 80 | emit wantsToWriteConfig(); |
| 81 | |
| 82 | const QString src = AppConfig::instance().getDspConfPath(); |
| 83 | const QString &dest = filename; |
| 84 | |
| 85 | if (QFile::exists(dest)) |
| 86 | { |
| 87 | QFile::remove(dest); |
| 88 | } |
| 89 | |
| 90 | QFile::copy(src, dest); |
| 91 | this->_presetModel->rescan(); |
| 92 | Log::debug("Saved to " + filename); |
| 93 | } |
| 94 | |
| 95 | void PresetManager::onOutputDeviceChanged(const QString &deviceName, const QString &deviceId, const QString& outputRouteId) |
| 96 | { |
no test coverage detected