We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d90fe commit 41ccc1cCopy full SHA for 41ccc1c
Framework/API/inc/MantidAPI/WorkspaceProperty.tcc
@@ -306,8 +306,8 @@ template <typename TYPE> const Kernel::PropertyHistory WorkspaceProperty<TYPE>::
306
307
if ((wsName.empty() || this->hasTemporaryValue()) && this->operator()()) {
308
const auto pvName = Kernel::PropertyWithValue<std::shared_ptr<TYPE>>::m_value->getPythonVariableName();
309
- if (!pvName.empty()) {
310
- pythonVariable = true;
+ pythonVariable = !pvName.empty();
+ if (pythonVariable) {
311
wsName = pvName;
312
} else {
313
// give the property a temporary name in the history
0 commit comments