Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fwlive.git;a=commitdiff;h=ea24b0b9e004155f8fe5745fcef63e8ceaf053a7
commit ea24b0b9e004155f8fe5745fcef63e8ceaf053a7 Author: James Buren <[email protected]> Date: Sun Feb 17 15:33:22 2013 -0600 before the partition is deleted internally, delete its UI entry. diff --git a/src/ui_newt.c b/src/ui_newt.c index 5b3c6f3..622e6d6 100644 --- a/src/ui_newt.c +++ b/src/ui_newt.c @@ -1126,7 +1126,20 @@ extern bool ui_window_partition(struct device **devices,struct disk **disks) else if(action.delete) { unsigned char partition = disk_partition_get_count(disk) - 1; - + + if(strcmp(disk_partition_get_purpose(disk,partition),"extended") != 0) + { + key.delete = false; + + key.partition = true; + + key.partition_number = partition; + + newtListboxDeleteEntry(listbox,(void *) key.data); + + key.data = action.data; + } + disk_delete_partition(disk); } } _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
