Remove currentPatternChanged() that has no effect (#7989)
This commit is contained in:
@@ -98,7 +98,6 @@ public slots:
|
||||
void play();
|
||||
void stop();
|
||||
void updateComboBox();
|
||||
void currentPatternChanged();
|
||||
|
||||
signals:
|
||||
void trackUpdated();
|
||||
|
||||
@@ -38,12 +38,6 @@ PatternStore::PatternStore() :
|
||||
TrackContainer(),
|
||||
m_patternComboBoxModel(this)
|
||||
{
|
||||
connect(&m_patternComboBoxModel, SIGNAL(dataChanged()),
|
||||
this, SLOT(currentPatternChanged()));
|
||||
// we *always* want to receive updates even in case pattern actually did
|
||||
// not change upon setCurrentPattern()-call
|
||||
connect(&m_patternComboBoxModel, SIGNAL(dataUnchanged()),
|
||||
this, SLOT(currentPatternChanged()));
|
||||
setType(Type::Pattern);
|
||||
}
|
||||
|
||||
@@ -213,22 +207,6 @@ void PatternStore::updateComboBox()
|
||||
|
||||
|
||||
|
||||
void PatternStore::currentPatternChanged()
|
||||
{
|
||||
// now update all track-labels (the current one has to become white, the others gray)
|
||||
const TrackList& tl = Engine::getSong()->tracks();
|
||||
for (Track * t : tl)
|
||||
{
|
||||
if (t->type() == Track::Type::Pattern)
|
||||
{
|
||||
t->dataChanged();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
void PatternStore::createClipsForPattern(int pattern)
|
||||
{
|
||||
const TrackList& tl = tracks();
|
||||
@@ -254,4 +232,4 @@ AutomatedValueMap PatternStore::automatedValuesAt(TimePos time, int clipNum) con
|
||||
}
|
||||
|
||||
|
||||
} // namespace lmms
|
||||
} // namespace lmms
|
||||
|
||||
Reference in New Issue
Block a user