diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp index acb8e0958..f3cfeab61 100644 --- a/sdrgui/mainwindow.cpp +++ b/sdrgui/mainwindow.cpp @@ -216,6 +216,14 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse QString applicationDirPath = qApp->applicationDirPath(); +#ifdef _MSC_VER + if (QResource::registerResource(applicationDirPath + "/sdrbase.rcc")) { + qDebug("MainWindow::MainWindow: registered resource file %s/%s", qPrintable(applicationDirPath), "sdrbase.rcc"); + } else { + qWarning("MainWindow::MainWindow: could not register resource file %s/%s", qPrintable(applicationDirPath), "sdrbase.rcc"); + } +#endif + m_apiAdapter = new WebAPIAdapterGUI(*this); m_requestMapper = new WebAPIRequestMapper(this); m_requestMapper->setAdapter(m_apiAdapter);