Skip to content

Commit b705e45

Browse files
committed
Various fixes
1 parent 0cca653 commit b705e45

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

ui/ttdeventswidget.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ TTDEventsWidget::TTDEventsWidget(QWidget* parent, BinaryViewRef data)
892892
setupUI();
893893

894894
// Only automatically load events if the debugger is running
895-
if (m_controller && m_controller->IsConnectedToDebugServer())
895+
if (m_controller && m_controller->IsTTD())
896896
{
897897
loadAllEvents();
898898
m_isPopulated = true;
@@ -948,7 +948,7 @@ void TTDEventsWidget::loadAllEvents()
948948
void TTDEventsWidget::refreshAllTabs()
949949
{
950950
// Only refresh if data is available and we haven't already populated
951-
if (m_controller && m_controller->IsConnectedToDebugServer() && !m_isPopulated)
951+
if (m_controller && m_controller->IsTTD() && !m_isPopulated)
952952
{
953953
loadAllEvents();
954954
m_isPopulated = true;
@@ -1051,7 +1051,7 @@ void TTDEventsSidebarWidget::onDebuggerEvent(const DebuggerEvent& event)
10511051
{
10521052
case TargetStoppedEventType:
10531053
// When target stops, refresh all tabs if not already populated
1054-
if (m_eventsWidget)
1054+
if (m_eventsWidget && event.data.targetStoppedData.reason == InitialBreakpoint)
10551055
m_eventsWidget->refreshAllTabs();
10561056
break;
10571057
case TargetExitedEventType:

ui/ttdeventswidget.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,11 @@ class TTDEventsQueryWidget : public QWidget
146146
// Method to check if this tab is unused (no results)
147147
bool isUnused() const;
148148

149+
public Q_SLOTS:
150+
void clearResults();
151+
149152
private Q_SLOTS:
150153
void performQuery();
151-
void clearResults();
152154
void onCellDoubleClicked(int row, int column);
153155
void showColumnVisibilityDialog();
154156
void resetColumnsToDefault();

0 commit comments

Comments
 (0)