Made isEmpty function name more specific. Moved doubleclick fix to restoreJournallingState.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -592,10 +592,7 @@ void knob::mouseReleaseEvent( QMouseEvent* event )
|
||||
AutomatableModel *thisModel = model();
|
||||
if( thisModel )
|
||||
{
|
||||
if( !thisModel->isEmpty() )
|
||||
{
|
||||
thisModel->restoreJournallingState();
|
||||
}
|
||||
thisModel->restoreJournallingState();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user