From 3d3622098b1bba3684bd05feef725811845bfe1e Mon Sep 17 00:00:00 2001 From: Brian Potchik Date: Thu, 3 Nov 2022 20:23:17 -0400 Subject: Prefer to restore location information from qsettings, falling back to location information from a database. --- ui/pane.h | 1 + ui/viewframe.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ui/pane.h b/ui/pane.h index 4a0941c4..02bec3b0 100644 --- a/ui/pane.h +++ b/ui/pane.h @@ -416,6 +416,7 @@ class BINARYNINJAUIAPI SplitPaneWidget : public QWidget void closing(); #ifndef BINARYNINJAUI_BINDINGS + bool hasInitialLocationState() { return !m_locations.empty(); } void applyInitialLocationState(); QVariantMap serializeLayout(); void deserializeLayout(const QVariantMap& layout); diff --git a/ui/viewframe.h b/ui/viewframe.h index 7be57ed1..60dca568 100644 --- a/ui/viewframe.h +++ b/ui/viewframe.h @@ -462,8 +462,9 @@ class BINARYNINJAUIAPI ViewFrame : public QWidget Parse history entries from the raw data associated with a BinaryView, loading them into the back/forward navigation stacks, and navigating to the saved position. \param data View containing history entries + \param restoreLocation whether or not to navigate to the location stored in the database */ - void readHistoryEntries(BinaryViewRef data); + void readHistoryEntries(BinaryViewRef data, bool restoreLocation); /*! Serialize history entries and current position, storing them in the raw data associated with a BinaryView. \param data View for saving history entries -- cgit v1.3.1