Made isEmpty function name more specific. Moved doubleclick fix to restoreJournallingState.

This commit is contained in:
Matthew Krafczyk
2014-09-09 17:07:40 +02:00
parent c628387cd2
commit 32eae51128
2 changed files with 5 additions and 6 deletions

View File

@@ -50,7 +50,9 @@ public:
void restoreJournallingState()
{
m_journalling = m_journallingStateStack.pop();
if( !isJournallingStackEmpty()) {
m_journalling = m_journallingStateStack.pop();
}
}
void addJournalCheckPoint();
@@ -77,7 +79,7 @@ public:
return oldJournalling;
}
inline bool isEmpty() const
inline bool isJournallingStackEmpty() const
{
return m_journallingStateStack.isEmpty();
}

View File

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