]> git.proxmox.com Git - pve-installer.git/commitdiff
Reset adjustment for spinbutton_hdsize
authorStoiko Ivanov <s.ivanov@proxmox.com>
Wed, 28 Nov 2018 11:40:57 +0000 (12:40 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Nov 2018 12:09:34 +0000 (13:09 +0100)
After setting the input buffer for the spinbutton the default value
wasn't displayed anymore, resulting in odd behaviour when clicking in the field
w/o entering/changing a value.

Setting the adjustment again, sets the default value as before

Signed-off-by: Stoiko Ivanov <s.ivanov@proxmox.com>
proxinstall

index 97c5394caf62996904c6daf08c515bf439a9aeb2..eee8208755654b55b07e757b9998e69caed9f029 100755 (executable)
@@ -2509,6 +2509,7 @@ my $get_hdsize_spinbtn = sub {
 
     my $spinbutton_hdsize = Gtk3::SpinButton->new($hdsize_size_adj, 1, 1);
     $spinbutton_hdsize->set_buffer($hdsize_entry_buffer);
+    $spinbutton_hdsize->set_adjustment($hdsize_size_adj);
     $spinbutton_hdsize->set_tooltip_text("only use specified size (GB) of the harddisk (rest left unpartitioned)");
     return $spinbutton_hdsize;
 };