From 4ba4d8b4e0c4215f5161877939bc4bdfcc2d9842 Mon Sep 17 00:00:00 2001 From: Jesse Dubay Date: Sat, 27 Oct 2012 22:16:45 +0200 Subject: [PATCH] ControllerConnectionDialog: fix crash on autodetect when using raw MIDI client --- src/gui/ControllerConnectionDialog.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/gui/ControllerConnectionDialog.cpp b/src/gui/ControllerConnectionDialog.cpp index 9c0db85ab..53ffc89e9 100644 --- a/src/gui/ControllerConnectionDialog.cpp +++ b/src/gui/ControllerConnectionDialog.cpp @@ -427,7 +427,10 @@ void ControllerConnectionDialog::midiValueChanged() if( m_midiAutoDetect.value() ) { m_midiController->useDetected(); - m_readablePorts->updateMenu(); + if( m_readablePorts ) + { + m_readablePorts->updateMenu(); + } } }