From: Joel Holdsworth Date: Sat, 7 Sep 2013 13:02:36 +0000 (+0100) Subject: When no range is specified, Int property spinbox should have a range set between... X-Git-Tag: pulseview-0.2.0~287 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a915c6a33eb66a170e9cf1dd6c76980def838b14;p=pulseview.git When no range is specified, Int property spinbox should have a range set between INT_MIN and INT_MAX --- diff --git a/pv/prop/int.cpp b/pv/prop/int.cpp index 761bd10a..98936292 100644 --- a/pv/prop/int.cpp +++ b/pv/prop/int.cpp @@ -55,6 +55,8 @@ QWidget* Int::get_widget(QWidget *parent) _spin_box->setSuffix(_suffix); if (_range) _spin_box->setRange((int)_range->first, (int)_range->second); + else + _spin_box->setRange(INT_MIN, INT_MAX); GVariant *const value = _getter ? _getter() : NULL; if (value) {