Pattern: disconnect PianoRoll before clearing current pattern

Closes #1083.
This commit is contained in:
Tobias Doerffel
2014-08-20 20:29:04 +02:00
parent ff3c4da802
commit b5db8e7bad

View File

@@ -651,6 +651,8 @@ patternView::~patternView()
{
if( engine::pianoRoll()->currentPattern() == m_pat )
{
engine::pianoRoll()->disconnect( this );
engine::pianoRoll()->setCurrentPattern( NULL );
// we have to have the song-editor to stop playing if it played
// us before