Skip to content

Commit

Permalink
use str instead of toStdString for image format
Browse files Browse the repository at this point in the history
  • Loading branch information
chrizzFTD committed Sep 2, 2024
1 parent f164701 commit ba29b33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion grill/views/description.py
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@ def _on_identifier_requested(self, anchor: Sdf.Layer, identifier: str):

@cache
def _image_formats_to_browse():
return frozenset(fmt.toStdString() for fmt in QtGui.QImageReader.supportedImageFormats())
return frozenset(str(fmt, 'utf-8') for fmt in QtGui.QImageReader.supportedImageFormats())

class _PseudoUSDTabBrowser(QtWidgets.QTextBrowser):
# See: https://doc.qt.io/qt-5/qtextbrowser.html#navigation
Expand Down

0 comments on commit ba29b33

Please sign in to comment.