diff options
author | jmarshallnz <jcmarsha@gmail.com> | 2014-01-31 12:22:58 -0800 |
---|---|---|
committer | jmarshallnz <jcmarsha@gmail.com> | 2014-01-31 12:22:58 -0800 |
commit | 1c669782f7ddc2dd35c40254501e1ae45bcb396b (patch) | |
tree | 251456c8a0c1c26af7864a10700e939fed48e3fc | |
parent | e5d5843540ae7e27e13cf73d553a9786b9d2803e (diff) | |
parent | 618cff753d20628920bb39d28ec40ba2619745f7 (diff) |
Merge pull request #4112 from amet/coresubs_select_item
[coreSubs] download only if user clicks SELECT/ENTER/OK
-rw-r--r-- | xbmc/video/dialogs/GUIDialogSubtitles.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xbmc/video/dialogs/GUIDialogSubtitles.cpp b/xbmc/video/dialogs/GUIDialogSubtitles.cpp index d6478afadd..6bf67a8435 100644 --- a/xbmc/video/dialogs/GUIDialogSubtitles.cpp +++ b/xbmc/video/dialogs/GUIDialogSubtitles.cpp @@ -31,6 +31,7 @@ #include "filesystem/SpecialProtocol.h" #include "guilib/GUIImage.h" #include "guilib/GUIKeyboardFactory.h" +#include "guilib/Key.h" #include "settings/MediaSettings.h" #include "settings/Settings.h" #include "settings/VideoSettings.h" @@ -114,7 +115,9 @@ CGUIDialogSubtitles::~CGUIDialogSubtitles(void) bool CGUIDialogSubtitles::OnMessage(CGUIMessage& message) { - if (message.GetMessage() == GUI_MSG_CLICKED) + if (message.GetMessage() == GUI_MSG_CLICKED && + (message.GetParam1() == ACTION_SELECT_ITEM || + message.GetParam1() == ACTION_MOUSE_LEFT_CLICK)) { int iControl = message.GetSenderId(); |