mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 23:25:53 +08:00
Avoid the style change crash. This is a temp.workaround until we know how to avoid it, but the usability impact can be neglected
Changing the style takes very long anyway and is a bit fault even if it works.
This commit is contained in:
committed by
Mat Sutcliffe
parent
563a69e3f5
commit
42af7e4e9f
@@ -1095,7 +1095,8 @@ namespace BlackGui
|
||||
{
|
||||
// QStyle *style = QApplication::setStyle(widgetStyle);
|
||||
QStyle *style = QStyleFactory::create(widgetStyle);
|
||||
QApplication::setStyle(style); // subject of crash
|
||||
// Disaabled because of crash
|
||||
// QApplication::setStyle(style); // subject of crash
|
||||
if (style)
|
||||
{
|
||||
CLogMessage(this).info(u"Changed style to '%1', req.: '%2'") << style->objectName() << widgetStyle;
|
||||
|
||||
Reference in New Issue
Block a user