Skip to content

Commit 40c08c0

Browse files
Copilotxusheng6
andcommitted
Fix crash by properly initializing UI pointers in TTDEventsQueryWidget constructor
Co-authored-by: xusheng6 <[email protected]>
1 parent 38a2a07 commit 40c08c0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ui/ttdeventswidget.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,11 @@ QList<bool> TTDEventsColumnVisibilityDialog::getColumnVisibility() const
9797

9898
// TTDEventsQueryWidget implementation
9999
TTDEventsQueryWidget::TTDEventsQueryWidget(QWidget* parent, BinaryViewRef data, WidgetType type)
100-
: QWidget(parent), m_data(data), m_widgetType(type)
100+
: QWidget(parent), m_data(data), m_widgetType(type),
101+
m_threadCreatedCheck(nullptr), m_threadTerminatedCheck(nullptr),
102+
m_moduleLoadedCheck(nullptr), m_moduleUnloadedCheck(nullptr),
103+
m_exceptionCheck(nullptr), m_queryButton(nullptr), m_clearButton(nullptr),
104+
m_resultsTable(nullptr), m_statusLabel(nullptr), m_contextMenuManager(nullptr)
101105
{
102106
m_controller = DebuggerController::GetController(data);
103107
if (!m_controller)

0 commit comments

Comments
 (0)