From bc95c72c3ffc6bddb70164a592f87c91d0731f7a Mon Sep 17 00:00:00 2001 From: niels Date: Tue, 2 Jun 2015 20:13:27 +0200 Subject: [PATCH] regression fix --- veejay-current/veejay-client/src/vj-api.c | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/veejay-current/veejay-client/src/vj-api.c b/veejay-current/veejay-client/src/vj-api.c index cf2eb2e9..58328ba1 100644 --- a/veejay-current/veejay-client/src/vj-api.c +++ b/veejay-current/veejay-client/src/vj-api.c @@ -8271,21 +8271,15 @@ static void remove_sample_from_slot() info->selection_slot->sample_id ); gint id_len = 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 - int *his = info->history_tokens[ (info->status_tokens[PLAY_MODE]) ]; - - his[TOTAL_SLOTS] = his[TOTAL_SLOTS] - 1; + // decrement history of delete type + int *his = info->history_tokens[ (info->status_tokens[PLAY_MODE]) ]; + + 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 ); - info->selection_gui_slot = NULL; - info->selection_slot = NULL; - } + set_selection_of_slot_in_samplebank( FALSE ); + info->selection_gui_slot = NULL; + info->selection_slot = NULL; }