diff --git a/include/JournallingObject.h b/include/JournallingObject.h index b9ada746e..c3a93a1cd 100644 --- a/include/JournallingObject.h +++ b/include/JournallingObject.h @@ -77,7 +77,8 @@ public: return oldJournalling; } - inline bool isEmpty() { + inline bool isEmpty() const + { return m_journallingStateStack.isEmpty(); } diff --git a/src/gui/widgets/knob.cpp b/src/gui/widgets/knob.cpp index dabd9cc49..141ae143f 100644 --- a/src/gui/widgets/knob.cpp +++ b/src/gui/widgets/knob.cpp @@ -592,7 +592,8 @@ void knob::mouseReleaseEvent( QMouseEvent* event ) AutomatableModel *thisModel = model(); if( thisModel ) { - if(!thisModel->isEmpty()) { + if( !thisModel->isEmpty() ) + { thisModel->restoreJournallingState(); } }