From 1d9e040d48279b33341ceb005517772d8df5ce61 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Sun, 7 Sep 2008 12:59:04 +0000 Subject: [PATCH] fixed crash when closing controller select dialog and no controller has been selected (closes #2078357) git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1572 0778d3d1-df1d-0410-868b-ea421aaaa00d --- ChangeLog | 4 ++++ src/gui/controller_connection_dialog.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a24813297..407e391d3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2008-09-07 Tobias Doerffel + * src/gui/controller_connection_dialog.cpp: + fixed crash when closing controller select dialog and no controller + has been selected (closes #2078357) + * include/track_container.h: * src/core/song.cpp: * src/core/track_container.cpp: diff --git a/src/gui/controller_connection_dialog.cpp b/src/gui/controller_connection_dialog.cpp index e2c6e0bcb..b6ad6a101 100644 --- a/src/gui/controller_connection_dialog.cpp +++ b/src/gui/controller_connection_dialog.cpp @@ -329,7 +329,7 @@ void controllerConnectionDialog::selectController( void ) m_userController->model()->value() ); } - if( m_controller->hasModel( m_targetModel ) ) + if( m_controller && m_controller->hasModel( m_targetModel ) ) { QMessageBox::warning(this, tr("LMMS"), tr("Cycle Detected.")); return;