diff --git a/include/BBEditor.h b/include/BBEditor.h index 8743bfe98..311ed5704 100644 --- a/include/BBEditor.h +++ b/include/BBEditor.h @@ -86,7 +86,7 @@ public slots: void removeSteps(); void addSampleTrack(); void addAutomationTrack(); - void cloneBBTrackPattern(); + void clonePattern(); protected slots: void dropEvent(QDropEvent * de ) override; diff --git a/src/gui/editors/BBEditor.cpp b/src/gui/editors/BBEditor.cpp index 1e5c2f900..bfc16df5b 100644 --- a/src/gui/editors/BBEditor.cpp +++ b/src/gui/editors/BBEditor.cpp @@ -88,7 +88,7 @@ BBEditor::BBEditor( BBTrackContainer* tc ) : trackAndStepActionsToolBar->addAction(embed::getIconPixmap("add_bb_track"), tr("Add beat/bassline"), Engine::getSong(), SLOT(addBBTrack())); trackAndStepActionsToolBar->addAction(embed::getIconPixmap("clone_bb_track_pattern"), tr("Clone beat/bassline pattern"), - m_trackContainerView, SLOT(cloneBBTrackPattern())); + m_trackContainerView, SLOT(clonePattern())); trackAndStepActionsToolBar->addAction( embed::getIconPixmap("add_sample_track"), tr("Add sample-track"), m_trackContainerView, @@ -315,8 +315,9 @@ void BBTrackContainerView::makeSteps( bool clone ) } } -// Creates a clone of the current BB track with the same pattern, but with no TCOs on the song editor -void BBTrackContainerView::cloneBBTrackPattern() +// Creates a clone of the current BB track with the same pattern, but no TCOs in the song editor +// TODO: Avoid repeated code from cloneTrack and clearTrack in TrackOperationsWidget somehow +void BBTrackContainerView::clonePattern() { // Get the current BBTrack id BBTrackContainer *bbtc = static_cast(model());