From 5152285eaf61a5d86727783ef72a4f3123827be0 Mon Sep 17 00:00:00 2001 From: Renu-Priya411 Date: Mon, 1 Sep 2025 12:34:44 +0530 Subject: [PATCH] Edit All Log Levels - Bug Fix "EditAllLogLevels" was showing default as the latest state always. Now it will show latest change made by the user. Signed-off by : Renu Priya Krishnamoorthy --- src/CMakeLists.txt | 40 ++++++++++++++++++++++++++++++++++++++++ src/mainwindow.cpp | 5 ++++- src/mainwindow.h | 4 ++++ 3 files changed, 48 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 9c935b4a..de7ef0a4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -21,31 +21,58 @@ endif() add_executable(dlt-viewer main.cpp mainwindow.cpp + mainwindow.h + project.h project.cpp + ecudialog.h ecudialog.cpp + applicationdialog.h applicationdialog.cpp + contextdialog.h contextdialog.cpp + filterdialog.h filterdialog.cpp + plugindialog.h plugindialog.cpp + settingsdialog.h settingsdialog.cpp + injectiondialog.h injectiondialog.cpp + searchdialog.h searchdialog.cpp + multiplecontextdialog.h multiplecontextdialog.cpp + tablemodel.h tablemodel.cpp + filtertreewidget.h filtertreewidget.cpp + dltfileutils.h dltfileutils.cpp + dltfileindexer.h dltfileindexer.cpp + dlttableview.h dlttableview.cpp + dltuiutils.h dltuiutils.cpp + workingdirectory.h workingdirectory.cpp + jumptodialog.h jumptodialog.cpp + searchtablemodel.h searchtablemodel.cpp + pulsebutton.h pulsebutton.cpp + plugintreewidget.h plugintreewidget.cpp + exporterdialog.h exporterdialog.cpp + dltmsgqueue.h dltmsgqueue.cpp + dltfileindexerthread.h dltfileindexerthread.cpp + dltfileindexerdefaultfilterthread.h dltfileindexerdefaultfilterthread.cpp + sortfilterproxymodel.h sortfilterproxymodel.cpp searchform.h searchform.cpp @@ -53,6 +80,19 @@ add_executable(dlt-viewer resources/dlt_viewer.rc ecutree.h ecutree.cpp + mainwindow.ui + exporterdialog.ui + searchdialog.ui + searchform.ui + settingsdialog.ui + multiplecontextdialog.ui + plugindialog.ui + filterdialog.ui + injectiondialog.ui + jumptodialog.ui + ecudialog.ui + contextdialog.ui + applicationdialog.ui ) target_link_libraries(dlt-viewer diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 2518ae6d..2beb7a5e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -2966,7 +2966,7 @@ void MainWindow::on_action_menuConfig_Context_Edit_triggered() void MainWindow::on_action_menuDLT_Edit_All_Log_Levels_triggered() { - MultipleContextDialog dlg(0,0); + MultipleContextDialog dlg(logLevel,traceStatus); if(dlg.exec()) { @@ -3023,6 +3023,9 @@ void MainWindow::on_action_menuDLT_Edit_All_Log_Levels_triggered() conitem->loglevel = dlg.loglevel(); conitem->tracestatus = dlg.tracestatus(); + logLevel = conitem->loglevel + 1; + traceStatus = conitem->tracestatus +1; + /* update context item */ conitem->update(); diff --git a/src/mainwindow.h b/src/mainwindow.h index efa29e4a..34897178 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -241,6 +241,10 @@ class MainWindow : public QMainWindow /**/ SortFilterProxyModel *sortProxyModel; + //values to carry the logLevel and traceStatus : Edit All Log Levels + int logLevel = 0; + int traceStatus = 0; + /* functions called in constructor */ void initState(); void initView();