From d6524c520a15c90971b74a87c3c79c961516df35 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Wed, 20 Mar 2019 14:38:04 +0100 Subject: [PATCH] ipconf view: only (re)set fields if nic really changed Signed-off-by: Thomas Lamprecht --- proxinstall | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/proxinstall b/proxinstall index 44fb11f..fc6b206 100755 --- a/proxinstall +++ b/proxinstall @@ -2026,7 +2026,11 @@ sub create_ipconf_view { my $device_change_handler = sub { my $current = shift; - $ipconf->{selected} = $device_active_map->{$current->get_active()}; + + my $new = $device_active_map->{$current->get_active()}; + return if $new eq $ipconf->{selected}; + + $ipconf->{selected} = $new; my $iface = $ipconf->{ifaces}->{$ipconf->{selected}}; $config->{mngmt_nic} = $iface->{name}; $ipconf_entry_addr->set_text($iface->{inet}->{addr} || $iface->{inet6}->{addr}) -- 2.39.2