copy selected sample if selected,otherwise copy current playing sample

This commit is contained in:
niels
2015-11-21 00:59:31 +01:00
parent 082b34f317
commit 4ac611f91b

View File

@@ -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);
}
}