Skip to content

Commit

Permalink
Fix #2950
Browse files Browse the repository at this point in the history
  • Loading branch information
clyne committed Jan 5, 2022
1 parent 0f7f94b commit 3ee4e0e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/vaporgui/PythonVariables.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@ PythonVariables::~PythonVariables()

void PythonVariables::Update(bool internalUpdate)
{
if ((_scriptName == "") || (_dataMgrName == "")) {

VAPoR::DataStatus * dataStatus = _controlExec->GetDataStatus();
std::vector<string> dataMgrNames = dataStatus->GetDataMgrNames();

if ((_scriptName == "") || (_dataMgrName == "") || ((std::find(dataMgrNames.begin(), dataMgrNames.end(), _dataMgrName) == dataMgrNames.end()))) {
_reset();
_setGUIEnabled(false);
} else {
Expand Down

0 comments on commit 3ee4e0e

Please sign in to comment.