From e37f3793f381d84658c9dafd115f8c10bcba9c1a Mon Sep 17 00:00:00 2001 From: Kevin Zander Date: Wed, 29 Jul 2020 13:26:20 -0500 Subject: [PATCH] Fix validPattern to check if hasAutomation as well (#5124) --- include/AutomationEditor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/AutomationEditor.h b/include/AutomationEditor.h index 520416be8..0a288f8af 100644 --- a/include/AutomationEditor.h +++ b/include/AutomationEditor.h @@ -70,7 +70,7 @@ public: inline bool validPattern() const { - return m_pattern != nullptr; + return m_pattern != nullptr && m_pattern->hasAutomation(); } void saveSettings(QDomDocument & doc, QDomElement & parent) override;