From dcf661f69874a74c6757773bd9bd6b8c1b92abb6 Mon Sep 17 00:00:00 2001 From: Murray Stevenson <50844517+murraystevenson@users.noreply.github.com> Date: Tue, 28 May 2024 14:18:10 -0700 Subject: [PATCH] PlugPopup : Improve discovery of textWidgets --- python/GafferUI/PlugPopup.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/python/GafferUI/PlugPopup.py b/python/GafferUI/PlugPopup.py index e26c2444e8a..a7c9f0849e6 100644 --- a/python/GafferUI/PlugPopup.py +++ b/python/GafferUI/PlugPopup.py @@ -165,13 +165,11 @@ def widgetUsable( w ) : widget = None - if isinstance( plugValueWidget, GafferUI.StringPlugValueWidget ) : - widget = plugValueWidget.textWidget() - elif isinstance( plugValueWidget, GafferUI.NumericPlugValueWidget ) : + if isinstance( plugValueWidget, GafferUI.NumericPlugValueWidget ) : widget = plugValueWidget.numericWidget() elif isinstance( plugValueWidget, GafferUI.PathPlugValueWidget ) : widget = plugValueWidget.pathWidget() - elif isinstance( plugValueWidget, GafferUI.MultiLineStringPlugValueWidget ) : + elif hasattr( plugValueWidget, "textWidget" ) : widget = plugValueWidget.textWidget() if widget is not None and widgetUsable( widget ) :