Permalink
Browse files

[coreSubs] download only if user clicks SELECT/ENTER/OK

  • Loading branch information...
amet committed Jan 30, 2014
1 parent ec1cf22 commit 618cff753d20628920bb39d28ec40ba2619745f7
Showing with 4 additions and 1 deletion.
  1. +4 −1 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();

0 comments on commit 618cff7

Please sign in to comment.