Skip to content

Commit

Permalink
Fix for 'Crash double-clicking any knob in debug build (git master) (L…
Browse files Browse the repository at this point in the history
…MMS#948)'

Conflicts:
	src/gui/widgets/knob.cpp
  • Loading branch information
krafczyk committed Sep 8, 2014
1 parent 619f912 commit 84895a4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions include/JournallingObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ class EXPORT JournallingObject : public SerializingObject
return oldJournalling;
}

inline bool isEmpty() {
return m_journallingStateStack.isEmpty();
}

protected:
void changeID( jo_id_t _id );
Expand Down
4 changes: 3 additions & 1 deletion src/gui/widgets/knob.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,9 @@ void knob::mouseReleaseEvent( QMouseEvent* event )
AutomatableModel *thisModel = model();
if( thisModel )
{
thisModel->restoreJournallingState();
if(!thisModel->isEmpty()) {
thisModel->restoreJournallingState();
}
}
}

Expand Down

0 comments on commit 84895a4

Please sign in to comment.