Skip to content

Commit

Permalink
fix change pf-file after already running without
Browse files Browse the repository at this point in the history
  • Loading branch information
Jazzco committed Mar 31, 2023
1 parent 2f6a5d5 commit d828028
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/file/pexgroupnode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,7 @@ void PExProjectNode::setParameterFile(FileMeta *pfFile)
DEB() << "Only files of FileKind::Pf can become a parameter file";
return;
}
setParameter("pf", "");
mParameterHash.remove("pf");
if (!pfFile) return;

QString pfPath = pfFile->location();
Expand Down Expand Up @@ -1050,10 +1050,8 @@ void PExProjectNode::clearParameters()
{
bool willChange = mParameterHash.size() != 1 || !mParameterHash.contains("gms");
QString gms = mParameterHash.value("gms");
QString pf = mParameterHash.value("pf");
mParameterHash.clear();
mParameterHash.insert("gms", gms);
mParameterHash.insert("pf", pf);
if (willChange) setNeedSave();
}

Expand Down

0 comments on commit d828028

Please sign in to comment.