From a3ad76c19cea1a52a8870d435e6cb4f1de4d2621 Mon Sep 17 00:00:00 2001 From: Alexander Wenzel Date: Tue, 30 Jul 2024 16:22:40 +0200 Subject: [PATCH] Revert Rename of dlt_common. (#512) Enable plugins if disabled when pre command called. Signed-off-by: Alexander Wenzel --- qdlt/CMakeLists.txt | 2 +- qdlt/{dlt_common.cpp => dlt_common.c} | 4 ++-- qdlt/qdlt.pro | 2 +- src/mainwindow.cpp | 8 ++++++++ 4 files changed, 12 insertions(+), 4 deletions(-) rename qdlt/{dlt_common.cpp => dlt_common.c} (99%) diff --git a/qdlt/CMakeLists.txt b/qdlt/CMakeLists.txt index 9f331a6d..288b673b 100644 --- a/qdlt/CMakeLists.txt +++ b/qdlt/CMakeLists.txt @@ -16,7 +16,7 @@ # add_library(qdlt SHARED - dlt_common.cpp + dlt_common.c qdltipconnection.cpp qdlttcpconnection.cpp qdltudpconnection.cpp diff --git a/qdlt/dlt_common.cpp b/qdlt/dlt_common.c similarity index 99% rename from qdlt/dlt_common.cpp rename to qdlt/dlt_common.c index 73c00490..6625c717 100644 --- a/qdlt/dlt_common.cpp +++ b/qdlt/dlt_common.c @@ -14,14 +14,14 @@ * * \author Alexander Wenzel 2011-2012 * - * \file dlt_common.cpp + * \file dlt_common.c * For further information see http://www.covesa.global/. * @licence end@ */ /******************************************************************************* ** ** -** SRC-MODULE: dlt_common.cpp ** +** SRC-MODULE: dlt_common.c ** ** ** ** TARGET : linux ** ** ** diff --git a/qdlt/qdlt.pro b/qdlt/qdlt.pro index 8e8ef169..b1980c34 100644 --- a/qdlt/qdlt.pro +++ b/qdlt/qdlt.pro @@ -41,7 +41,7 @@ UI_DIR = build/ui INCLUDEPATH = . ../src SOURCES += \ - dlt_common.cpp \ + dlt_common.c \ qdltipconnection.cpp \ qdltmessagedecoder.cpp \ qdlttcpconnection.cpp \ diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index a261c34d..fc48fb2b 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -712,6 +712,14 @@ void MainWindow::initFileHandling() { QStringList commands = QDltOptManager::getInstance()->getPrePluginCommands(); + // Enable plugins, if they are not enabled + if(!pluginsEnabled) + { + qDebug() << "Enable plugins, because they were disabled!"; + pluginsEnabled = true; + dltIndexer->setPluginsEnabled(pluginsEnabled); + } + for(int num = 0; num< commands.size();num++) { qDebug() << "Command:" << commands[num];