From 943837993fd8f3eb2a0b9d1d5713ce89f296a19e Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Tue, 30 Jul 2024 17:06:41 +0200 Subject: [PATCH] Revert "Revert Rename of dlt_common. (#512)" This reverts commit a3ad76c19cea1a52a8870d435e6cb4f1de4d2621. --- qdlt/CMakeLists.txt | 2 +- qdlt/{dlt_common.c => dlt_common.cpp} | 4 ++-- qdlt/qdlt.pro | 2 +- src/mainwindow.cpp | 8 -------- 4 files changed, 4 insertions(+), 12 deletions(-) rename qdlt/{dlt_common.c => dlt_common.cpp} (99%) diff --git a/qdlt/CMakeLists.txt b/qdlt/CMakeLists.txt index 288b673b..9f331a6d 100644 --- a/qdlt/CMakeLists.txt +++ b/qdlt/CMakeLists.txt @@ -16,7 +16,7 @@ # add_library(qdlt SHARED - dlt_common.c + dlt_common.cpp qdltipconnection.cpp qdlttcpconnection.cpp qdltudpconnection.cpp diff --git a/qdlt/dlt_common.c b/qdlt/dlt_common.cpp similarity index 99% rename from qdlt/dlt_common.c rename to qdlt/dlt_common.cpp index 6625c717..73c00490 100644 --- a/qdlt/dlt_common.c +++ b/qdlt/dlt_common.cpp @@ -14,14 +14,14 @@ * * \author Alexander Wenzel 2011-2012 * - * \file dlt_common.c + * \file dlt_common.cpp * For further information see http://www.covesa.global/. * @licence end@ */ /******************************************************************************* ** ** -** SRC-MODULE: dlt_common.c ** +** SRC-MODULE: dlt_common.cpp ** ** ** ** TARGET : linux ** ** ** diff --git a/qdlt/qdlt.pro b/qdlt/qdlt.pro index b1980c34..8e8ef169 100644 --- a/qdlt/qdlt.pro +++ b/qdlt/qdlt.pro @@ -41,7 +41,7 @@ UI_DIR = build/ui INCLUDEPATH = . ../src SOURCES += \ - dlt_common.c \ + dlt_common.cpp \ qdltipconnection.cpp \ qdltmessagedecoder.cpp \ qdlttcpconnection.cpp \ diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index fc48fb2b..a261c34d 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -712,14 +712,6 @@ 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];