mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 09:03:40 +02:00
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:
@@ -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)=="-") {
|
||||
|
Reference in New Issue
Block a user