at destruction check whether mainWindow is still alive

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1342 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-07-18 22:17:02 +00:00
parent 91291b64e8
commit 6703c06fcd

View File

@@ -5,7 +5,7 @@
* for drag'n'drop of string-pairs and which is the base
* for all drag'n'drop-actions within LMMS
*
* Copyright (c) 2005-2007 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2005-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -56,8 +56,10 @@ stringPairDrag::~stringPairDrag()
{
// during a drag, we might have lost key-press-events, so reset
// modifiers of main-win
engine::getMainWindow()->clearKeyModifiers();
// TODO: do we have to delete anything???
if( engine::getMainWindow() )
{
engine::getMainWindow()->clearKeyModifiers();
}
}