2020-01-27 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDCmdSwitch' that caused empty argument values
	to be returned as a null QString.
This commit is contained in:
Fred Gleason 2020-01-27 17:35:37 -05:00
parent 866e85b1a7
commit 0bc1268b00
2 changed files with 9 additions and 1 deletions

View File

@ -19423,3 +19423,6 @@
* Incremented the package version to 3.2.1.
2020-01-27 Fred Gleason <fredg@paravelsystems.com>
* Added a 'delta-seconds' modifier to Filepath Wildcards.
2020-01-27 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDCmdSwitch' that caused empty argument values
to be returned as a null QString.

View File

@ -50,7 +50,12 @@ RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const char *modname,
for(int i=2;i<f0.size();i++) {
f0[1]+="="+f0[i];
}
switch_values.push_back(f0[1]);
if(f0[1].isEmpty()) {
switch_values.push_back("");
}
else {
switch_values.push_back(f0[1]);
}
switch_processed.push_back(false);
}
else {