diff options
| author | Glenn Smith <glenn@vector35.com> | 2025-04-15 19:06:42 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2025-04-16 16:20:44 -0400 |
| commit | 4952747066642661517277537060579581155148 (patch) | |
| tree | 78e74c9bc53def792c4ca93b8759b1da9d2a7e1f /ui/viewframe.h | |
| parent | 6048009821540158204514940210999152088083 (diff) | |
Navigation: Only go to non-navigable views when restoring state
Diffstat (limited to 'ui/viewframe.h')
| -rw-r--r-- | ui/viewframe.h | 5 |
1 files 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<T*>(widget); } - bool navigate(const QString& type, uint64_t offset, bool updateInfo = true, bool addHistoryEntry = true); - bool navigate(const QString& type, const std::function<bool(View*)>& 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<bool(View*)>& 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); |
