diff options
| author | Peter LaFosse <peter@vector35.com> | 2018-03-20 17:03:18 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2018-03-20 17:03:30 -0400 |
| commit | 7df91eab880eea11369072ae4ebc9b6ae2bb2f51 (patch) | |
| tree | 9c79a268b65f1f25e7985c40c60ba1f024e98358 /binaryview.cpp | |
| parent | 5f07bf18df013860c9d9870a4ad0fba78379b0f1 (diff) | |
Call CreateDatabase on parent view if it exists
Diffstat (limited to 'binaryview.cpp')
| -rw-r--r-- | binaryview.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/binaryview.cpp b/binaryview.cpp index 0dcf6bc3..8dcae40f 100644 --- a/binaryview.cpp +++ b/binaryview.cpp @@ -584,6 +584,9 @@ bool BinaryView::IsBackedByDatabase() const bool BinaryView::CreateDatabase(const string& path) { + auto parent = GetParentView(); + if (parent) + return parent->CreateDatabase(path); return m_file->CreateDatabase(path, this); } @@ -591,6 +594,9 @@ bool BinaryView::CreateDatabase(const string& path) bool BinaryView::CreateDatabase(const string& path, const function<void(size_t progress, size_t total)>& progressCallback) { + auto parent = GetParentView(); + if (parent) + return parent->CreateDatabase(path); return m_file->CreateDatabase(path, this, progressCallback); } |
