File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010#include < QToolBar>
1111#include < QVBoxLayout>
12+ #include < QtCore/QMetaObject>
1213#include < utility>
1314
1415using namespace BinaryNinja ;
@@ -170,11 +171,13 @@ WarpSidebarWidget::WarpSidebarWidget(BinaryViewRef data) : SidebarWidget("WARP")
170171 this ->setLayout (layout);
171172
172173 // Do a full update if analysis has been done, otherwise we may persist old data and not have new data.
173- m_analysisEvent = new AnalysisCompletionEvent (m_data, [this ]() { ExecuteOnMainThread ([this ]() { Update (); }); });
174+ m_analysisEvent = new AnalysisCompletionEvent (m_data, [this ]() {
175+ QMetaObject::invokeMethod (this , [this ]() { Update (); });
176+ });
174177
175178 m_fetcher = WarpFetcher::Global ();
176179 m_callbackId = m_fetcher->AddCompletionCallback ([this ]() {
177- ExecuteOnMainThread ( [this ]() {
180+ QMetaObject::invokeMethod ( this , [this ]() {
178181 // Instead of doing a full update after fetching, we only want to make sure the current function has
179182 // up-to-date matches, since the other two tabs (all matches, container list) do not get populated with
180183 // additional information or manage their own updates (e.g. container source list).
You can’t perform that action at this time.
0 commit comments