mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
GUI crashes if stylesheet changes, this provides a fix
This commit is contained in:
@@ -182,6 +182,7 @@ void SwiftGuiStd::init()
|
||||
|
||||
void SwiftGuiStd::initStyleSheet()
|
||||
{
|
||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||
const QString s = sGui->getStyleSheetUtility().styles(
|
||||
{
|
||||
CStyleSheetUtility::fileNameFonts(),
|
||||
@@ -189,6 +190,7 @@ void SwiftGuiStd::initStyleSheet()
|
||||
CStyleSheetUtility::fileNameSwiftStandardGui()
|
||||
}
|
||||
);
|
||||
this->setStyleSheet(""); //! \todo KB 2018-07 without clearing the stylesheet I see a crash here for the 2nd update
|
||||
this->setStyleSheet(s);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user