Skip to content

Commit

Permalink
Revert Rename of dlt_common. (COVESA#512)
Browse files Browse the repository at this point in the history
Enable plugins if disabled when pre command called.

Signed-off-by: Alexander Wenzel <[email protected]>
  • Loading branch information
alexmucde authored Jul 30, 2024
1 parent b5a1cb0 commit a3ad76c
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion qdlt/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#

add_library(qdlt SHARED
dlt_common.cpp
dlt_common.c
qdltipconnection.cpp
qdlttcpconnection.cpp
qdltudpconnection.cpp
Expand Down
4 changes: 2 additions & 2 deletions qdlt/dlt_common.cpp → qdlt/dlt_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
*
* \author Alexander Wenzel <[email protected]> 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 **
** **
Expand Down
2 changes: 1 addition & 1 deletion qdlt/qdlt.pro
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ UI_DIR = build/ui
INCLUDEPATH = . ../src

SOURCES += \
dlt_common.cpp \
dlt_common.c \
qdltipconnection.cpp \
qdltmessagedecoder.cpp \
qdlttcpconnection.cpp \
Expand Down
8 changes: 8 additions & 0 deletions src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit a3ad76c

Please sign in to comment.