From c628387cd22d2412178c2238af9ee8686ff87fbf Mon Sep 17 00:00:00 2001 From: Matthew Krafczyk Date: Tue, 9 Sep 2014 01:39:08 +0200 Subject: [PATCH] Make syntax for fix more consistent with existing code. --- include/JournallingObject.h | 3 ++- src/gui/widgets/knob.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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(); } }