From 67be5a86d9c43307ab434475c43a5e2e635afe4f Mon Sep 17 00:00:00 2001 From: f4exb Date: Sun, 2 Jun 2019 20:34:49 +0200 Subject: [PATCH] Windows: restored online API documentation --- sdrgui/mainwindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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);