diff --git a/veejay-current/veejay-client/src/callback.c b/veejay-current/veejay-client/src/callback.c index 09e1e5ff..03a3a498 100644 --- a/veejay-current/veejay-client/src/callback.c +++ b/veejay-current/veejay-client/src/callback.c @@ -1722,7 +1722,7 @@ void on_button_clipcopy_clicked(GtkWidget *widget, gpointer user_data) { if(info->selection_slot) { - multi_vims( VIMS_SAMPLE_COPY , "%d", info->selection_slot->sample_id ); + multi_vims( VIMS_SAMPLE_COPY , "%d", (info->selection_slot == NULL ? info->selection_slot->sample_id : info->selection_slot->sample_id) ); gveejay_new_slot(MODE_SAMPLE); } }