mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-22 07:40:00 +01:00
regression fix
This commit is contained in:
@@ -8271,22 +8271,16 @@ static void remove_sample_from_slot()
|
|||||||
info->selection_slot->sample_id );
|
info->selection_slot->sample_id );
|
||||||
gint id_len = 0;
|
gint id_len = 0;
|
||||||
gint deleted_sample = 0;
|
gint deleted_sample = 0;
|
||||||
gchar *deleted_id = recv_vims( 3, &id_len );
|
|
||||||
sscanf( deleted_id, "%d", &deleted_sample );
|
|
||||||
if( deleted_sample )
|
|
||||||
{
|
|
||||||
// decrement history of delete type
|
// decrement history of delete type
|
||||||
int *his = info->history_tokens[ (info->status_tokens[PLAY_MODE]) ];
|
int *his = info->history_tokens[ (info->status_tokens[PLAY_MODE]) ];
|
||||||
|
|
||||||
his[TOTAL_SLOTS] = his[TOTAL_SLOTS] - 1;
|
his[TOTAL_SLOTS] = his[TOTAL_SLOTS] - 1;
|
||||||
|
|
||||||
update_sample_slot_data( bank_nr, slot_nr, 0, -1, NULL, NULL);
|
update_sample_slot_data( bank_nr, slot_nr, 0, -1, NULL, NULL);
|
||||||
|
|
||||||
set_selection_of_slot_in_samplebank( FALSE );
|
set_selection_of_slot_in_samplebank( FALSE );
|
||||||
info->selection_gui_slot = NULL;
|
info->selection_gui_slot = NULL;
|
||||||
info->selection_slot = NULL;
|
info->selection_slot = NULL;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------------------------------------------------------------
|
/* --------------------------------------------------------------------------------------------------------------------------
|
||||||
|
|||||||
Reference in New Issue
Block a user