From 6c6fbfbe4ae9dd694cf5a361b652b25fd0651d14 Mon Sep 17 00:00:00 2001 From: Stefan Seyfried Date: Fri, 20 Feb 2015 08:55:45 +0100 Subject: [PATCH] CPluginExec: avoid crash when pluginlist is empty Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/396be41ab301846a463f07d6db5d4f99717c4a7a Author: Stefan Seyfried Date: 2015-02-20 (Fri, 20 Feb 2015) --- src/gui/pluginlist.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gui/pluginlist.cpp b/src/gui/pluginlist.cpp index 544fdcc4d..2e6687724 100644 --- a/src/gui/pluginlist.cpp +++ b/src/gui/pluginlist.cpp @@ -162,6 +162,7 @@ int CPluginsExec::exec(CMenuTarget* parent, const std::string & actionKey) if (actionKey == "teletext") { g_RCInput->postMsg(CRCInput::RC_timeout, 0); g_RCInput->postMsg(CRCInput::RC_text, 0); + return menu_return::RETURN_EXIT; } else if (sel >= 0) g_PluginList->startPlugin(sel);