summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorBrian Potchik <brian@vector35.com>2022-11-03 20:23:17 -0400
committerPeter LaFosse <peter@vector35.com>2022-11-10 16:19:13 -0500
commit3d3622098b1bba3684bd05feef725811845bfe1e (patch)
tree4b1b9abbc8628c14fa700963fe410f0e4d8ac324 /ui
parent53472825d1c445ef0aefebb1b72daf76ca2ded83 (diff)
Prefer to restore location information from qsettings, falling back to location information from a database.
Diffstat (limited to 'ui')
-rw-r--r--ui/pane.h1
-rw-r--r--ui/viewframe.h3
2 files changed, 3 insertions, 1 deletions
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