mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +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()
|
void SwiftGuiStd::initStyleSheet()
|
||||||
{
|
{
|
||||||
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
const QString s = sGui->getStyleSheetUtility().styles(
|
const QString s = sGui->getStyleSheetUtility().styles(
|
||||||
{
|
{
|
||||||
CStyleSheetUtility::fileNameFonts(),
|
CStyleSheetUtility::fileNameFonts(),
|
||||||
@@ -189,6 +190,7 @@ void SwiftGuiStd::initStyleSheet()
|
|||||||
CStyleSheetUtility::fileNameSwiftStandardGui()
|
CStyleSheetUtility::fileNameSwiftStandardGui()
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
this->setStyleSheet(""); //! \todo KB 2018-07 without clearing the stylesheet I see a crash here for the 2nd update
|
||||||
this->setStyleSheet(s);
|
this->setStyleSheet(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user