From 58da76a169db3b6f94d918bd129fd3bc65dcf910 Mon Sep 17 00:00:00 2001 From: Chris Ballance Date: Fri, 31 Mar 2017 09:43:31 +0100 Subject: [PATCH] gui: remove unnecessary state test --- artiq/gui/entries.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/artiq/gui/entries.py b/artiq/gui/entries.py index c8ba8e3c3..2469edfbf 100644 --- a/artiq/gui/entries.py +++ b/artiq/gui/entries.py @@ -260,8 +260,7 @@ class _RangeScan(LayoutWidget): def update_randomize(value): state["randomize"] = value - if randomize.isChecked() != value: - randomize.setChecked(value) + randomize.setChecked(value) scanner.startChanged.connect(update_start) scanner.numChanged.connect(update_npoints)