mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-09-27 07:16:48 -04:00
MainWindow: if not specified on the command line look for a default fftw-wisdom file in the default application data location
This commit is contained in:
parent
b0c49f3b50
commit
88d1d0abf7
@ -28,6 +28,7 @@
|
|||||||
#include <QKeyEvent>
|
#include <QKeyEvent>
|
||||||
#include <QResource>
|
#include <QResource>
|
||||||
#include <QFontDatabase>
|
#include <QFontDatabase>
|
||||||
|
#include <QStandardPaths>
|
||||||
|
|
||||||
#include "device/devicegui.h"
|
#include "device/devicegui.h"
|
||||||
#include "device/deviceapi.h"
|
#include "device/deviceapi.h"
|
||||||
@ -180,7 +181,20 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse
|
|||||||
|
|
||||||
splash->showStatusMessage("allocate FFTs...", Qt::white);
|
splash->showStatusMessage("allocate FFTs...", Qt::white);
|
||||||
splash->showStatusMessage("allocate FFTs...", Qt::white);
|
splash->showStatusMessage("allocate FFTs...", Qt::white);
|
||||||
|
|
||||||
|
if (parser.getFFTWFWisdomFileName().length() != 0)
|
||||||
|
{
|
||||||
m_dspEngine->createFFTFactory(parser.getFFTWFWisdomFileName());
|
m_dspEngine->createFFTFactory(parser.getFFTWFWisdomFileName());
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
QString defaultFFTWWisdomFile = QStandardPaths::locate(QStandardPaths::AppDataLocation, "fftw-wisdom");
|
||||||
|
|
||||||
|
if (defaultFFTWWisdomFile.length() != 0) {
|
||||||
|
m_dspEngine->createFFTFactory(defaultFFTWWisdomFile);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
m_dspEngine->preAllocateFFTs();
|
m_dspEngine->preAllocateFFTs();
|
||||||
|
|
||||||
splash->showStatusMessage("load settings...", Qt::white);
|
splash->showStatusMessage("load settings...", Qt::white);
|
||||||
|
Loading…
Reference in New Issue
Block a user