From d803cb0c9fc56fd1fbf95c429d95399569ecaff0 Mon Sep 17 00:00:00 2001 From: Daniel Foose Date: Wed, 19 Oct 2016 00:45:56 -0400 Subject: [PATCH] close map windows on deleting dataset --- Vespucci/Data/Dataset/vespuccidataset.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Vespucci/Data/Dataset/vespuccidataset.cpp b/Vespucci/Data/Dataset/vespuccidataset.cpp index 64290c16..d32586a1 100644 --- a/Vespucci/Data/Dataset/vespuccidataset.cpp +++ b/Vespucci/Data/Dataset/vespuccidataset.cpp @@ -32,7 +32,12 @@ using namespace std; /// /// \brief VespucciDataset::~VespucciDataset /// -VespucciDataset::~VespucciDataset(){} +VespucciDataset::~VespucciDataset() +{ + for (auto key : MapKeys()) + workspace_->GetMap(name_, key)->HideMapWindow(); + +} bool VespucciDataset::Save(QString filename) {