Skip to content

Commit

Permalink
Fixed regression following text_to_qcolor removal
Browse files Browse the repository at this point in the history
  • Loading branch information
PierreRaybaut committed Oct 24, 2023
1 parent a92cb33 commit dfa93d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guidata/dataset/qtitemwidgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def __init__(
def update(self, value: str) -> None:
"""Reimplement LineEditWidget method"""
LineEditWidget.update(self, value)
color = QColor(value)
color = QColor("" if value is None else value)
if color.isValid():
bitmap = QPixmap(16, 16)
bitmap.fill(color)
Expand Down

0 comments on commit dfa93d4

Please sign in to comment.