Skip to content

Commit

Permalink
Fix validPattern to check if hasAutomation as well (LMMS#5124)
Browse files Browse the repository at this point in the history
  • Loading branch information
Veratil authored Jul 29, 2020
1 parent 36749dc commit 7958f6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/AutomationEditor.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class AutomationEditor : public QWidget, public JournallingObject

inline bool validPattern() const
{
return m_pattern != nullptr;
return m_pattern != nullptr && m_pattern->hasAutomation();
}

void saveSettings(QDomDocument & doc, QDomElement & parent) override;
Expand Down

0 comments on commit 7958f6a

Please sign in to comment.