Fixed crash when changing UI style (fusion, ...)

* use overloaded function with string directly
* Qt::QueuedConnection

The old version looked correct to me, nevertheless it did always crash
This commit is contained in:
Klaus Basan
2019-04-05 19:09:15 +02:00
committed by Mat Sutcliffe
parent 9fd782af71
commit 77acffb73e
2 changed files with 10 additions and 2 deletions

View File

@@ -37,7 +37,7 @@ namespace BlackGui
// Widget style
connect(ui->hs_SettingsGuiOpacity, &QSlider::valueChanged, this, &CSettingsGuiComponent::changedWindowsOpacity);
connect(ui->cb_SettingsGuiWidgetStyle, qOverload<const QString &>(&QComboBox::currentIndexChanged), this, &CSettingsGuiComponent::widgetStyleChanged);
connect(ui->cb_SettingsGuiWidgetStyle, qOverload<const QString &>(&QComboBox::currentIndexChanged), this, &CSettingsGuiComponent::widgetStyleChanged, Qt::QueuedConnection);
ui->comp_SettingsFonts->setStyleSheetDefaultColor();