Skip to content

Commit b745a7c

Browse files
committed
Fix compilation
1 parent 2bd79f1 commit b745a7c

File tree

2 files changed

+8
-13
lines changed

2 files changed

+8
-13
lines changed

ui/ui.cpp

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,14 @@ void GlobalDebuggerUI::GetAddressRange(const UIActionContext& ctxt, uint64_t& st
209209
void GlobalDebuggerUI::QueryTTDMemoryAccess(const UIActionContext& ctxt, uint64_t startAddr, uint64_t endAddr, BNDebuggerTTDMemoryAccessType accessType)
210210
{
211211
// Focus the TTD Memory sidebar widget
212-
auto mainWindow = ctxt.context->mainWindow();
213-
if (mainWindow)
214-
{
215-
auto sidebar = mainWindow->sidebar();
216-
if (sidebar)
217-
{
218-
sidebar->activateWidget("TTD Memory");
219-
}
220-
}
212+
if (!ctxt.context)
213+
return;
214+
215+
auto sidebar = ctxt.context->sidebar();
216+
if (!sidebar)
217+
return;
218+
219+
sidebar->activate("TTD Memory");
221220

222221
// Get the TTD Memory widget and perform the query
223222
auto controller = DebuggerController::GetController(ctxt.binaryView);

ui/ui.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,6 @@ class GlobalDebuggerUI : public QObject
6060
void GetAddressRange(const UIActionContext& ctxt, uint64_t& startAddr, uint64_t& endAddr);
6161
void QueryTTDMemoryAccess(const UIActionContext& ctxt, uint64_t startAddr, uint64_t endAddr, BNDebuggerTTDMemoryAccessType accessType);
6262

63-
#ifdef WIN32
64-
void installTTD(const UIActionContext& ctxt);
65-
#endif
66-
6763
void SetDisplayingGlobalAreaWidgets(bool display);
6864
};
6965

0 commit comments

Comments
 (0)