diff --git a/source/ubinstall-gtk.c b/source/ubinstall-gtk.c index f16e13e..a5d042f 100644 --- a/source/ubinstall-gtk.c +++ b/source/ubinstall-gtk.c @@ -1984,7 +1984,9 @@ void yon_set_max_size_from_partition(GtkTreeView *table, GtkSpinButton *spin_siz GtkTreeIter iter; char *selected_size=NULL; if (gtk_tree_selection_get_selected(gtk_tree_view_get_selection(table),&model,&iter)){ - gtk_tree_model_get(model,&iter,1,&selected_size,-1); + gtk_tree_model_get(model,&iter,2,&selected_size,-1); + if (yon_char_is_empty(selected_size)) + gtk_tree_model_get(model,&iter,1,&selected_size,-1); if (!yon_char_is_empty(selected_size)){ int size = gtk_combo_box_get_active(size_type); double cur_size = atof(selected_size); diff --git a/ubinstall-gtk.glade b/ubinstall-gtk.glade index d0ed9eb..9428d6c 100644 --- a/ubinstall-gtk.glade +++ b/ubinstall-gtk.glade @@ -3640,7 +3640,6 @@ installed. 0,0 adjustment1 1 - False