diff options
| author | Brian Potchik <brian@vector35.com> | 2020-10-15 17:51:31 -0400 |
|---|---|---|
| committer | Brian Potchik <brian@vector35.com> | 2020-10-15 17:51:31 -0400 |
| commit | 84230e606e8de3f7c01aa9006c7f14caf25c5c49 (patch) | |
| tree | 5107b3a0975b8524e14a07aa2a575f9a86d90df2 /binaryview.cpp | |
| parent | cbe3ded641a0ce4b50ae447a4426b71f3e0f0119 (diff) | |
Cleanup load options when choosing to not open specific BinaryView types during open with options.
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 8e3f115a..d355246d 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -3048,7 +3048,7 @@ Ref<Settings> BinaryView::GetLoadSettings(const string& typeName) void BinaryView::SetLoadSettings(const string& typeName, Ref<Settings> settings) { - BNBinaryViewSetLoadSettings(m_object, typeName.c_str(), settings->GetObject()); + BNBinaryViewSetLoadSettings(m_object, typeName.c_str(), settings ? settings->GetObject() : nullptr); } |
