From 9a6ac85f991225f4b450353f0f15cd11ab2ae1fd Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Wed, 26 Feb 2025 16:56:33 +0100 Subject: [PATCH] use qcoreapplication -> no window or widgets --- DownloadDCFirmware/main.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/DownloadDCFirmware/main.cpp b/DownloadDCFirmware/main.cpp index 4c508fa..560c215 100644 --- a/DownloadDCFirmware/main.cpp +++ b/DownloadDCFirmware/main.cpp @@ -1,7 +1,6 @@ #include #include -#include #include #include @@ -16,7 +15,6 @@ #include "commandline_parser.h" #include "utils.h" #include "update.h" -#include "mainwindow.h" #include "System.h" #include @@ -54,9 +52,9 @@ int main(int argc, char **argv) { openlog("DC", LOG_PERROR | LOG_CONS, LOG_USER); - QApplication a(argc, argv); - QApplication::setApplicationName("ATBDownloadDCFirmware"); - QApplication::setApplicationVersion(APP_VERSION); + QCoreApplication a(argc, argv); + QCoreApplication::setApplicationName("ATBDownloadDCFirmware"); + QCoreApplication::setApplicationVersion(APP_VERSION); if (!messageHandlerInstalled()) { // change internal qt-QDebug-handling atbInstallMessageHandler(atbDebugOutput);