summaryrefslogtreecommitdiff
path: root/binaryview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'binaryview.cpp')
-rw-r--r--binaryview.cpp6
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);
}