From 4952747066642661517277537060579581155148 Mon Sep 17 00:00:00 2001 From: Glenn Smith Date: Tue, 15 Apr 2025 19:06:42 -0400 Subject: Navigation: Only go to non-navigable views when restoring state --- ui/viewframe.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui/viewframe.h b/ui/viewframe.h index 4fc1ee1c..3d15cfee 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -372,6 +372,7 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget QStringList m_viewTypePriority; int m_preferredSyncGroup = 1; bool m_aboutToClose = false; + LoggerRef m_logger; UIActionHandler m_actionHandler; TimerWithMaxTries* m_mainNavigationTimer; @@ -436,8 +437,8 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget return qobject_cast(widget); } - bool navigate(const QString& type, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true); - bool navigate(const QString& type, const std::function& handler, bool updateInfo = true, bool addHistoryEntry = true); + bool navigate(const QString& type, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true, bool checkNavigable = false); + bool navigate(const QString& type, const std::function& handler, bool updateInfo = true, bool addHistoryEntry = true, bool checkNavigable = false); bool navigate(BinaryViewRef data, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true); bool navigateToFunction(FunctionRef func, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true); bool goToReference(BinaryViewRef data, FunctionRef func, uint64_t source, uint64_t target, bool addHistoryEntry = true); -- cgit v1.3.1