mirror of
https://github.com/martijnvanbrummelen/nwipe.git
synced 2026-02-20 13:42:14 +00:00
PDFGen29 Fix incorrect customer deletion/selection
When using backspace or esc to abort customer deletion, first customer in list would incorrectly be deleted. Corrected by this fix. Also when aborting customer selection, first customer in list would be automatically selected. Also corrected by this fix.
This commit is contained in:
@@ -198,7 +198,10 @@ void delete_customer( int count, char** customer_list_array )
|
||||
|
||||
nwipe_gui_list( count, window_title, customer_list_array, &selected_entry );
|
||||
|
||||
delete_customer_csv_entry( &selected_entry );
|
||||
if( selected_entry != 0 )
|
||||
{
|
||||
delete_customer_csv_entry( &selected_entry );
|
||||
}
|
||||
}
|
||||
|
||||
void write_customer_csv_entry( char* customer_name,
|
||||
|
||||
Reference in New Issue
Block a user