Make syntax for fix more consistent with existing code.

This commit is contained in:
Matthew Krafczyk
2014-09-09 01:39:08 +02:00
parent 00086c9f20
commit c628387cd2
2 changed files with 4 additions and 2 deletions

View File

@@ -77,7 +77,8 @@ public:
return oldJournalling;
}
inline bool isEmpty() {
inline bool isEmpty() const
{
return m_journallingStateStack.isEmpty();
}

View File

@@ -592,7 +592,8 @@ void knob::mouseReleaseEvent( QMouseEvent* event )
AutomatableModel *thisModel = model();
if( thisModel )
{
if(!thisModel->isEmpty()) {
if( !thisModel->isEmpty() )
{
thisModel->restoreJournallingState();
}
}