Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=f685b423f93901f39c21cec7b2baa4afa7c61aec
commit f685b423f93901f39c21cec7b2baa4afa7c61aec Author: James Buren <r...@frugalware.org> Date: Mon Feb 18 23:05:11 2013 -0600 do not append a blank entry after the last detected block device diff --git a/new/src/ui_newt.c b/new/src/ui_newt.c index 85edadd..c299c57 100644 --- a/new/src/ui_newt.c +++ b/new/src/ui_newt.c @@ -412,7 +412,7 @@ static bool ui_dialog_partition_modify_partition(struct disk *disk,int n) for( i = 0 ; purposes[i] != 0 ; ++i ) { if(strcmp(purposes[i],"unknown") == 0) - continue; + continue; newtListboxAppendEntry(listbox,purposes[i],purposes[i]); @@ -984,7 +984,8 @@ extern bool ui_window_partition(struct device **devices,struct disk **disks) action.device_number = 0; - newtListboxAppendEntry(listbox,"",0); + if(devices[i+1] != 0) + newtListboxAppendEntry(listbox,"",0); } newtListboxSetCurrent(listbox,0); _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git