2021-10-02 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdlogmanager(1) that broke the '--show-styles' and
	'-style <name>' command-line switches.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-10-02 14:44:10 -04:00
parent d758d10b30
commit c4b1e2f2fc
3 changed files with 20 additions and 0 deletions

View File

@@ -103,6 +103,13 @@ RDCmdSwitch::RDCmdSwitch(int argc,char *argv[],const QString &modname,
if(value=="-d") {
switch_debug=true;
}
if((value=="-show-styles")||(value=="--show-styles")) {
QStringList styles=QStyleFactory::keys();
for(int i=0;i<styles.size();i++) {
printf("%s\n",styles.at(i).toUtf8().constData());
}
exit(0);
}
QStringList f0=value.split("=",QString::KeepEmptyParts);
if(f0.size()>=2) {
if(f0.at(0).left(1)=="-") {