This commit is contained in:
itsmattkc
2022-03-30 15:10:55 -07:00
3 changed files with 17 additions and 2 deletions
+6 -1
View File
@@ -37,7 +37,8 @@ namespace olive {
ViewerTextEditor::ViewerTextEditor(double scale, QWidget *parent) :
super(parent),
transparent_clone_(nullptr),
block_update_toolbar_signal_(false)
block_update_toolbar_signal_(false),
listen_to_focus_events_(false)
{
// Ensure default text color is white
QPalette p = palette();
@@ -175,6 +176,10 @@ void ViewerTextEditor::UpdateToolBar(ViewerTextEditorToolBar *toolbar, const QTe
void ViewerTextEditor::FocusChanged(QWidget *old, QWidget *now)
{
if (!listen_to_focus_events_) {
return;
}
QWidget *test = now;
if (!test) {