mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-05-28 21:12:26 -04:00
Fixed FFTW wisdom file check
This commit is contained in:
parent
e046266efa
commit
a295c6b859
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user