Skip to content

Commit

Permalink
Simulation Experiment view: free up our data store data once we are d…
Browse files Browse the repository at this point in the history
…one with it.
  • Loading branch information
agarny committed Nov 23, 2018
1 parent b754d76 commit 7025cce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/datastoreinterface.h
Expand Up @@ -119,8 +119,10 @@ class DataStore;

//==============================================================================

class DataStoreData
class DataStoreData : public QObject
{
Q_OBJECT

public:
explicit DataStoreData(const QString &pFileName, DataStore *pDataStore,
const DataStoreVariables &pVariables);
Expand Down
Expand Up @@ -3186,8 +3186,11 @@ void SimulationExperimentViewSimulationWidget::simulationResultsExport()

connect(dataStoreExporter, &DataStore::DataStoreExporter::progress,
this, &SimulationExperimentViewSimulationWidget::dataStoreExportProgress);

connect(dataStoreExporter, &DataStore::DataStoreExporter::done,
this, &SimulationExperimentViewSimulationWidget::dataStoreExportDone);
connect(dataStoreExporter, &DataStore::DataStoreExporter::done,
dataStoreData, &DataStore::DataStoreData::deleteLater);

dataStoreExporter->exportData(dataStoreData);
}
Expand Down

0 comments on commit 7025cce

Please sign in to comment.