Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit 84e59c0

Browse files
committed
Cast spinbox setting to int when setting
1 parent c2ad12a commit 84e59c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pugdebug/gui/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def set_widget_value(self, widget, value):
141141
if isinstance(widget, QLineEdit):
142142
widget.setText(value)
143143
elif isinstance(widget, QSpinBox):
144-
widget.setValue(value)
144+
widget.setValue(int(value))
145145
elif isinstance(widget, QCheckBox):
146146
widget.setCheckState(value)
147147
else:

0 commit comments

Comments
 (0)