Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions preditor/gui/console_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from typing import Optional

from Qt import QtCompat
from Qt.QtCore import Property, Qt
from Qt.QtCore import Property, Qt, QTimer
from Qt.QtGui import (
QColor,
QFontMetrics,
Expand Down Expand Up @@ -514,8 +514,10 @@ def onFirstShow(self, event):
if not self._first_show:
return False

# Configure the stream callbacks if enabled
self.update_streams()
# Configure the stream callbacks if enabled. Delay calling these until
# the UI has been fully shown. This is prevents some DCC's like
# Houdini 21.0(possibly Qt6) from segfaulting.
QTimer.singleShot(0, self.update_streams)

# Redefine highlight variables now that stylesheet may have been updated
self.codeHighlighter().defineHighlightVariables()
Expand Down