From 20322a1a551fe3dc77b83719e826e1275bf5b9f5 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Tue, 15 Apr 2014 03:09:19 +0200 Subject: [PATCH] Assert for keyboard list --- src/blackcore/context_audio_impl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/blackcore/context_audio_impl.cpp b/src/blackcore/context_audio_impl.cpp index 456a90b24..9a4da578b 100644 --- a/src/blackcore/context_audio_impl.cpp +++ b/src/blackcore/context_audio_impl.cpp @@ -311,6 +311,7 @@ namespace BlackCore if (type == IContextSettings::SettingsHotKeys) { CKeyboardKeyList hotKeys = this->getIContextSettings()->getHotkeys(); + Q_ASSERT(!hotKeys.isEmpty()); CKeyboardKey pttKey = hotKeys.findBy(&BlackMisc::Hardware::CKeyboardKey::getFunction, BlackMisc::Hardware::CKeyboardKey::HotkeyPtt).front(); m_keyboard->unregisterHotkey(m_handlePtt); m_handlePtt = m_keyboard->registerHotkey(pttKey, m_voice, &CVoiceVatlib::handlePushToTalk);