]> git.proxmox.com Git - pve-installer.git/commitdiff
ipconf view: only (re)set fields if nic really changed
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Mar 2019 13:38:04 +0000 (14:38 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 20 Mar 2019 13:38:04 +0000 (14:38 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
proxinstall

index 44fb11fd4f1b0d09021a99b37a44093052d6f44c..fc6b2061c38ffe1033d184f291036aa3e25daf17 100755 (executable)
@@ -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})