mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-14 22:51:13 +02:00
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:
@@ -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 {
|
||||
|
Reference in New Issue
Block a user