2025-09-13 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'RDConfig' that caused a false 'invalid dropbox ID'
	warning to be generated when parsing rd.conf(5).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2025-09-13 13:46:08 -04:00
parent 4f4472b824
commit 9482446a6d
2 changed files with 12 additions and 7 deletions

View File

@@ -25042,3 +25042,6 @@
2025-08-30 Fred Gleason <fredg@paravelsystems.com>
* Added a 'LogDropboxProcessing=' directive to the '[Debugging]'
section of rd.conf(5).
2025-09-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'RDConfig' that caused a false 'invalid dropbox ID'
warning to be generated when parsing rd.conf(5).

View File

@@ -714,13 +714,15 @@ bool RDConfig::load()
QStringList f0=profile->stringValue("Debugging","LogDropboxProcessing").
split(",",QString::KeepEmptyParts);
for(int i=0;i<f0.size();i++) {
bool ok=false;
int id=f0.at(i).trimmed().toUInt(&ok);
if(ok&&(id>0)) {
conf_log_dropbox_processing_ids.push_back(id);
}
else {
fprintf(stderr,"WARNING: invalid dropbox ID \"%s\" specified in LogDropboxProcessing=\n",f0.at(i).toUtf8().constData());
if(!f0.at(i).trimmed().isEmpty()) {
bool ok=false;
int id=f0.at(i).trimmed().toUInt(&ok);
if(ok&&(id>0)) {
conf_log_dropbox_processing_ids.push_back(id);
}
else {
fprintf(stderr,"WARNING: invalid dropbox ID \"%s\" specified in LogDropboxProcessing=\n",f0.at(i).toUtf8().constData());
}
}
}
conf_meter_base_port=