1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2024-09-28 07:46:37 -04:00

Fixed FFTW wisdom file check

This commit is contained in:
f4exb 2021-11-04 19:19:17 +01:00
parent e046266efa
commit a295c6b859

View File

@ -190,10 +190,15 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
} }
else else
{ {
QString defaultFFTWWisdomFile = QStandardPaths::locate(QStandardPaths::AppDataLocation, "fftw-wisdom"); QString filePath = QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
filePath += QDir::separator();
filePath += "fftw-wisdom";
QFileInfo fileInfo = QFileInfo(filePath);
if (defaultFFTWWisdomFile.length() != 0) { if (fileInfo.exists()) {
m_dspEngine->createFFTFactory(defaultFFTWWisdomFile); m_dspEngine->createFFTFactory(filePath);
} else {
m_dspEngine->createFFTFactory("");
} }
} }
@ -1828,6 +1833,7 @@ void MainWindow::fftWisdomProcessFinished(int exitCode, QProcess::ExitStatus exi
} }
delete m_fftWisdomProcess; delete m_fftWisdomProcess;
m_fftWisdomProcess = nullptr;
} }
void MainWindow::on_action_AMBE_triggered() void MainWindow::on_action_AMBE_triggered()