mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 16:56:53 +08:00
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:
committed by
Mat Sutcliffe
parent
9fd782af71
commit
77acffb73e
@@ -1086,7 +1086,15 @@ namespace BlackGui
|
||||
}
|
||||
else
|
||||
{
|
||||
QApplication::setStyle(QStyleFactory::create(widgetStyle));
|
||||
QStyle *style = QApplication::setStyle(currentWidgetStyle);
|
||||
if (style)
|
||||
{
|
||||
CLogMessage(this).info(u"Changed style to '%1', req.: '%2'") << style->objectName() << currentWidgetStyle;
|
||||
}
|
||||
else
|
||||
{
|
||||
CLogMessage(this).error(u"Unable to set requested style '%1'") << currentWidgetStyle;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user