From 497575b6873caed70dddd098592b73cf68d18dc8 Mon Sep 17 00:00:00 2001 From: Baldur Karlsson Date: Thu, 15 Mar 2018 13:02:39 +0000 Subject: [PATCH] Remove Qt::WA_StaticContents property as it has several Qt bugs * In particular, the widget gets added to a 'staticWidgets' list in a widget backing store, but if the window is floating then it's never removed from the list and causes a crash shortly after the floating window is closed. --- .../scintilla/qt/ScintillaEditBase/ScintillaEditBase.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qrenderdoc/3rdparty/scintilla/qt/ScintillaEditBase/ScintillaEditBase.cpp b/qrenderdoc/3rdparty/scintilla/qt/ScintillaEditBase/ScintillaEditBase.cpp index 03ecb4fdc..77452c7de 100644 --- a/qrenderdoc/3rdparty/scintilla/qt/ScintillaEditBase/ScintillaEditBase.cpp +++ b/qrenderdoc/3rdparty/scintilla/qt/ScintillaEditBase/ScintillaEditBase.cpp @@ -57,7 +57,7 @@ ScintillaEditBase::ScintillaEditBase(QWidget *parent) setAutoFillBackground(false); setFrameStyle(QFrame::NoFrame); setFocusPolicy(Qt::StrongFocus); - setAttribute(Qt::WA_StaticContents); + //setAttribute(Qt::WA_StaticContents); viewport()->setAutoFillBackground(false); setAttribute(Qt::WA_KeyCompression); setAttribute(Qt::WA_InputMethodEnabled);