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

* Fixed a regression in rdairplay(1) that caused the '-style' switch
	to be ignored.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2021-10-20 12:56:08 -04:00
parent 2458206ff5
commit 90656ef63f
2 changed files with 13 additions and 1 deletions

View File

@ -22524,3 +22524,6 @@
* Updated I18N data.
2021-10-13 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 4.0.0beta3.
2021-10-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdairplay(1) that caused the '-style' switch
to be ignored.

View File

@ -2230,7 +2230,16 @@ void MainWidget::SetActionMode(StartButton::Mode mode)
int main(int argc,char *argv[])
{
QApplication::setStyle(RD_GUI_STYLE);
bool user_style=false;
for(int i=0;i<argc;i++) {
if(QString(argv[i])=="-style") {
user_style=true;
break;
}
}
if(!user_style) {
QApplication::setStyle(RD_GUI_STYLE);
}
QApplication a(argc,argv);
//